Slay the madness


Use literal notation to finish the snoopy object. Remember literal notation is the one where we fill in { } with separate properties and values with colons. Each property is separated by a comma.

snoopy should have two properties, a species of "beagle" and age of 10.

Then make buddy, a 5 year-old golden retriever, using constructor notation. This notation involves using the keyword new to create an empty object. Then we fill it in using dot notation.

Now how does one do this? I don't know how, and the few blogs that returned a hit don't know how...


In case you want a visual. Literal:

var cade = {
age: 13,
name: "Cade",
language: "C++"


var cade = new Object();
cade.color = "purple"; = "brown";