type map in js code example
Example 1: javascript map
const numbers = [0,1,2,3];
console.log(numbers.map((number) => {
return number;
}));
Example 2: nodejs map
let wrongMap = new Map()
wrongMap['bla'] = 'blaa'
wrongMap['bla2'] = 'blaaa2'
console.log(wrongMap) // Map { bla: 'blaa', bla2: 'blaaa2' }