[JS] Math Functions
```js const num = 3.141592653589793238;
```js const num = 3.141592653589793238;
What will be happen if you use an object as a key in an object? Run below code and see how it goes.
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 let recipeMap = new Map([ [‘cucumber’, 500], [‘tomatoes’, 350], [‘onion’, 50] ]);
Simple example to use react-router history to prevent the user leaving the page.