person = { 'name':'john smith' 'age':41 }; console.log(person); //this will return [object Object] //use console.log(JSON.stringify(person)); //instead
function Dog() { this.name = "Bailey"; this.colour = "Golden"; this.breed = "Golden Retriever"; this.age = 8; }