What is wrong with this?


#1



/www.codecademy.com/courses/spencer-sandbox/5/2?curriculum_id=506324b3a7dffd00020bf661#


SyntaxError: Unexpected token [
Oops, try again. There was a problem with your syntax.

 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"];


#2

if you use the bracket notation you don't need to use a .:

var age =snoopy["age"];

#3

thank you. It is so simple and yet I did not saw