DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
fill array with random numbers javascript using arrow function
let
result
=
new
Array
(
10
)
result
=
result
.
fill
(
0
)
.
map
(
(
)
=>
Math
.
random
(
)
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#fill
#array
#random
#numbers
#javascript
#arrow
#function
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit