9.I am stucking here! Pls somebody Help!


#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 weight =
var age =

#2

You need to fill in these two lines. If you have no idea how to do this, take a look at the example which gets the dog species. You just need to find the weight and age of the dog.


#3

I still can't follow @nicoekkart :crying_cat_face:
var weight =[60];
var age =[4];
???


#4

This is how you get the species of the dog. Do you know how you get the weight of the dog and the age of the dog?


#5

OmG! I finally got this!!! haha Thank you so much Nicoe?
I think I am the one and only who got stuck here!!!:sweat_smile:
var weight = dog["weight"];
var age = dog["age"]; yesss!!!


#6

Haha.

I don't think so :smile:.


#7

:grin: Thank you so much!!!!


#8

This exercise is very confusing - in the bracket notation, how do you make the weight = 60 and age = 4??

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


#9

Definitely not the only one!


#10

:grin::grin::grin::grin:
Mmm