Search
 
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
Name
1+8 =