Object II 10


#1

what i am doing wrong?
SyntaxError: Unexpected token ILLEGAL

var nyc = {
fullName: "New York City",
mayor: "Bill de Blasio",
population: 8000000,
boroughs: 5
};

for (var property in nyc) {
console.log (nyc[property]);
}


#2

The code works fine. When I copy and paste it, there is no error. Maybe you need to refresh the page or delete the code and paste it again.