JavaScript で使われる用語について以下のように考えています。
誤りはありますでしょうか?
ⅰ)const point = [100,200];
const : 命令,予約語
point : class名
100,200 : プロパティ
ⅱ)const point = {
x:100, y=200
};
const:命令,予約語
point:class名
x,y : キー
100,200 : プロパティ
ⅲ)class Point = {x:100,y:200};
const : 命令,予約語
Point : class名
x,y : キー
100,200 : プロパティ
JavaScript の用語ですが,貼り付けている画像の認識で正しいでしょうか?
回答3件
あなたの回答
tips
プレビュー