Learnitweb

Category: JavaScript tutorial

  • Features of JavaScript

    JavaScript is prototype based object oriented scripting language. Functions are used as object constructors. JavaScript is dynamically typed scripting language. JavaScript supports run-time evaluation. JavaScript has features of functional programming. A function is a first-class in JavaScript. JavaScript supports implicit and explicit delegation. JavaScript supports regular expressions. JavaScript does not provide many features of its…

  • strict mode in JavaScript

    JavaScript was developed over the years and several versions came but backward compatibility was maintained. The downside of this approach is that all imperfect language constructs remained there in language over the years. In ECMAScript 5, there were some major changes done to the existing language features. To maintain backward compatibility, these features are off…

  • Data types in JavaScript

    The latest ECMAScript standard defines eight data types: Seven primitive data types: Boolean: Boolean represents a logical entity and can have two values: true, and false. Null: The Null type has exactly one value: null. Undefined: A variable that has not been assigned a value has the value undefined. Number: The Number type is a…