Answers for "js map constructor"

2

js map constructor

let myMap = new Map([
  [1, 'one'], // [key, value]
  [2, 'two'],
  [3, 'three'],
]) // from MDN
Posted by: Guest on October-14-2020
2

new map js

let utilisateurs = new Map()

utilisateurs.set('Mark Zuckerberg' ,{
    email: '[email protected]',
    poste: 'PDG',
})

utilisateurs.set ('bill Gates',{
    email: '[email protected]' ,
    poste : 'sauver le monde' ,

})
    
console.log(utilisateurs);
Posted by: Guest on March-17-2020
3

javascript map

const numbers = [0,1,2,3];

console.log(numbers.map((number) => {
  return number;
}));
Posted by: Guest on October-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language