what is object js code example
Example 1: objects javascript
function Dog() {
this.name = "Bailey";
this.colour = "Golden";
this.breed = "Golden Retriever";
this.age = 8;
}
Example 2: javascript object
let names = {
name1: 'What ever you want to put'
}