const currencies = new Map([ ["USD", "United States dollar"], ["EUR", "Euro"], ["GBP", "Pound sterling"], ]); currencies.forEach(function (value, key, map) { console.log(`${key}: ${value}`); }); const currency1 = new Set(["USD", "EUR", "GBP"]); currency1.forEach(function (key, value, set) { console.log(`${key}: ${value} `); });