how to define object javas code example
Example 1: objects javascript
function Dog() {
this.name = "Bailey";
this.colour = "Golden";
this.breed = "Golden Retriever";
this.age = 8;
}
Example 2: how to create a object in javascript
var about = {
name:"lanitoman",
age:1023,
isHeProgrammer:true
}