how to iterate through a mapin javascript code example
Example 1: iterate over map key value javascript
recipeMap.forEach((value, key) => {
console.log(`${key} costs ${value}`);
});
Example 2: js loop trough map
for (let key of map) {
console.log(key);
}