What is wrong with this?



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


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

var age =snoopy["age"];


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