background preloader


Facebook Twitter


JavaScript Objects in Detail | JavaScript is Sexy - Vimperator. JavaScript’s core—most often used and most fundamental—data type is the Object data type. JavaScript has one complex data type, the Object data type, and it has five simple data types: Number, String, Boolean, Undefined, and Null. Note that these simple (primitive) data types are immutable (cannot be changed), while objects are mutable (can be changed). A Once-in-a-Lifetime Opportunity Train to Become an Exceptional and Successful Developer While Building Real-World Projects You Can Benefit from for Years By the founder of JavaScriptIsSexy What is an Object An object is an unordered list of primitive data types (and sometimes reference data types) that is stored as a series of name-value pairs.

Consider this simple object: Think of an object as a list that contains items, and each item (a property or a method) in the list is stored by a name-value pair. Property names can be a string or a number, but if the property name is a number, it has to be accessed with the bracket notation.