Recent Posts

[JS] Map built in functions

less than 1 minute read

new Map() – create a new map. map.set(key, value) – set key and value pair. map.get(key) – return key's value. If no key exist then return undefined. map.has...

[JS] Map loop

less than 1 minute read

```js let recipeMap = new Map([ [‘cucumber’, 500], [‘tomatoes’, 350], [‘onion’, 50] ]);