Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript map

const items = [1, 2, 3, 4, 5, 6, 7, 8, 9];

const anotherItems = items.map(item => item * 2);

console.log(anotherItems);
Source by js.zonayed.me #
 
PREVIOUS NEXT
Tagged: #javascript #map
ADD COMMENT
Topic
Name
9+5 =