Exercise 6.1

This commit is contained in:
Andrea Bianchi
2026-04-05 18:49:32 +09:00
parent d8cdc977e6
commit bd53e91476
3 changed files with 79 additions and 0 deletions

5
w5_1_HOF/example.js Normal file
View File

@@ -0,0 +1,5 @@
const city = 'Seoul';
const item = {};
item.city = city;
item[city] = item[city] || 0;
console.log(item);