31/33: What am I missing?


#1

var snoopy = new Object();
snoopy.species = "beagle";
snoopy.age = 10;

// save Snoopy's age and species into variables
// use dot notation for snoopy's species
var species = new Object();
snoopy.species = "beagle";

// use bracket notation for snoopy's age
var age = new Object();
snoopy["age"] = 10;


#2

the lines should be reduced to

var species = snoopy.species;

// use bracket notation for snoopy's age
var age =snoopy["age"];

console.log(age)
console.log(species)

#3

thanks for posting this I was also getting the code mixed up.