ex03-11-3

実行結果

3
8
Object    {"黄色"   color: undefined, 3   not an identifier: undefined,    }

ソース

const obj = {};
obj.color = "黄色";
obj["not an identifier"] = 3;
console.log(obj["not an identifier"]); // 3

const SIZE = Symbol();
obj[SIZE] = 8;
console.log(obj[SIZE]); // 8
console.log(obj);  // { color: '黄色', 'not an identifier': 3 }