Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Access Map Elements

let map1 = new Map();
map1.set('info', {name: 'Jack', age: "26"});

// access the elements of a Map
console.log(map1.get('info')); // {name: "Jack", age: "26"}
 
PREVIOUS NEXT
Tagged: #javascript #Access #Map #Elements
ADD COMMENT
Topic
Name
8+5 =