▼例)複数の座標を管理したい場合
'use strict'; { const points = [ {x: 30, y: 20}, {x: 10, y: 50}, {x: 40, y: 40}, ]; console.log(points[1].y); }
配列の変数名[ インデックス番号 ].キー