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);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javaScript #Method
ADD COMMENT
Topic
Name
7+7 =