DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
map in javascript
const arr = [1, 2, 3, 4, 5, 6]; const mapped = arr.map(el => el + 20); //[21, 22, 23, 24, 25, 26]
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#map
#javascript
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit