var nyc = {
fullName: "New York City",
mayor: "Michael Bloomberg",
population: 8000000,
boroughs: 5
};
var myProperty = this.nyc;
/*this is one variable so how can it store all the values and what does this.nyc mean
and what value it carries, value of all property or just the value of one property*/
for(myProperty in nyc){console.log(nyc[myProperty]);}
//how is this line giving me the value of all the properties of object.
基本的にどのようにループが動作しますか?このプログラムはどのように私にオブジェクトのプロパティの値を得ましたか?
[可能なものは何ですか?] javascriptのステートメント(http://stackoverflow.com/questions/4559491/what-is-for-in-statement-in-javascript) – Thilo