0
Q:

js map constructor

let myMap = new Map([
  [1, 'one'], // [key, value]
  [2, 'two'],
  [3, 'three'],
]) // from MDN
1
const numbers = [0,1,2,3];

console.log(numbers.map((number) => {
  return number;
}));
2

array.map(function(currentValue, index, arr), thisValue)
7

New to Communities?

Join the community