Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javaScript set() Method

// Create a Map
const fruits = new Map();

// Set Map Values
fruits.set("apples", 500);
fruits.set("bananas", 300);
fruits.set("oranges", 200);
 
PREVIOUS NEXT
Tagged: #javaScript #Method
ADD COMMENT
Topic
Name
8+7 =