w3schools javascript objects code example
Example 1: objects javascript
function Dog() {
this.name = "Bailey";
this.colour = "Golden";
this.breed = "Golden Retriever";
this.age = 8;
}
Example 2: objects in javascript
let name = {
name1: 'mark'
}