宇井隆治  2020/12/19更新

プロパティの操作


const point = {x:100,y:200};

point.x = 300;

point['x'] = 300;

console.log(point.x);

console.log(point['y']);

point.z = 400;

delete point.y;

console.log(point);


タイトルとURLをコピーしました