9.Excercise 9.Getting IN timate


#1

9.Excercise 9.Getting IN timate

It runs, but I expected to have other results... I thonk I would print only the fullName


var nyc = {
    fullName: "New York City",
    mayor: "Bill de Blasio",
    population: 8000000,
    boroughs: 5
};
for(var fullName in nyc){console.log(fullName);
}


#2

What other results did you want to see?

This code should print only the keys I believe.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.