31."Properties" Help!


#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 = 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!


#2

Its OK!
What did I do wrong ?!


#3

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