このオブジェクトのプロパティの値を出力するにはどうすればよいですか? 現時点では、値ではなくプロパティ名を出力するだけです。
var nyc = {
fullName: "New York City",
mayor: "Michael Bloomberg",
population: 8000000,
boroughs: 5
};
for(var x in nyc) { console.log(nyc[x]); }