js objekt code example
Example 1: js obj
var obj = {my:"sql", nice:[69, 420]};
obj.my //returns the string "sql"
obj.nice //returns the array [69, 420]
Example 2: objects javascript
function Dog() {
this.name = "Bailey";
this.colour = "Golden";
this.breed = "Golden Retriever";
this.age = 8;
}