Exercise 6.1
This commit is contained in:
5
w5_1_HOF/example.js
Normal file
5
w5_1_HOF/example.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const city = 'Seoul';
|
||||
const item = {};
|
||||
item.city = city;
|
||||
item[city] = item[city] || 0;
|
||||
console.log(item);
|
||||
Reference in New Issue
Block a user