Please help on 9 i dont get it


#1

// Take a look at our next example object, a dog
var dog = {
species: "greyhound",
weight: 60,
age: 4
};

var species = dog["species"];
// fill in the code to save the weight and age using bracket notation
var dog: = {
species: dog["puddle"]
weight = dog["60"];
age = dog['4'];
};


#2

Question:

// Take a look at our next example object, a dog
var dog = {
  species: "greyhound",
  weight: 60,
  age: 4
};

var species = dog["species"];
// fill in the code to save the weight and age using bracket notation
var weight =
var age =

Answer:

// Take a look at our next example object, a dog
var dog = {
  species: "greyhound",
  weight: 60,
  age: 4
};

var species = dog["species"];
// fill in the code to save the weight and age using bracket notation
var weight = dog["weight"];
var age = dog["age"];

The question said

Notice on line 8 how we save the dog's species into a variable by accessing the species property of dog using bracket notation.
Use bracket notation to save the dog's weight and age into variables as well.

So all you have to do is set weight and age as they have shown for species.

If you see, Dog is a declared variable, right? like wise, we are declaring another three variables called : species, weight & age.
each of these new variables will contain properties from Dog variable.


#3

thank you it helped me