【週刊ドットインストール】 Figma入門を制作中、256timesの新クラスを企画中
配列に値を付ける場合に
{ // const point = [100, 180]; // const point = {x: 100, y: 180}; const point = { x: 100, y: 180, }; console.log(y); console.log(x); }
で x, y の値が出ないのはなぜなのでしょうか?
この回答を見るにはプレミアムプランへの登録が必要です