for〜inでオブジェクトをループさせて値を取得
//オブジェクトの作成
var fruit = {
"apple":"10",
"banana":"20",
"orange":"30"
};
for(key in fruit){
console.log(key);
console.log(lang[key]);
//多次元の場合のアクセス
//console.log(fruit[key].apple);
}
// 多次元配列の場合複雑になってくるので注意
// この他にもfor文でループして値を取り出す方法がある