As we know in Javascript there are two different datatypes - Primitive Datatype like string, number, boolean, undefined, null, Symbol(introduced in ES6) and Reference Datatype like object. Primitive datatypes are immutable(cannot be changed) and values contain only a single thing (a string or a number etc) whereas Objects are mutable(can be changed). What is Object? An object is an unordered list of data types, stored as name-value(or key-value) pairs. Each item in the list is called a property (and functions are called methods).e.g. let person = {name : "Alex", age: 27 }; console.log(person); output : { name : "Alex" , age : 27 } age : 27 name : " Alex " __proto__ : Object We can also create the same person object differently let person = new Object(); person.name = "Alex"; person.age = 27; console.log(person); output: { name : "Alex" , age : 27 } Generally, property names are kept as string but it ca
Explore Javascript core concepts and various Js frameworks. Understand behind the scene working of Javascript engine in easy language with various simple examples.