DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
console.time
const
numbers
=
[
2
,
4
,
6
,
8
]
;
const
multi
=
numbers
.
map
(
n
=>
n
*
n
)
;
console
.
log
(
'numbers'
,
multi
)
;
Source by dev.to #
PREVIOUS
NEXT
Tagged:
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit