31."Properties" Help!


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 = snoopy.species;
// use bracket notation for snoopy's age
var age = snoopy[age];

ERROR: Oops, try again. It looks like you didn't save snoopy's age into age!
Please help me!


Its OK!
What did I do wrong ?!


In bracket notation, you need to place speech marks around the part in the brackets, so var age = snoopy["age"];