JavaScript β Objects and Methods
One of the most important features in JavaScript.
Objects and properties
In objects, we define key-value pairs which means each value has a name which is called the key.
Objects are like containers which can store variables called properties.
One fundamental differences between an object and an array is that in array order matters a lot while in object it does not matter at all.
Steps
Declare a variable
var john =
The easiest way to create a object is the so called object literal.
Continue reading →