Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 359 Bytes

create-array-of-5-random-numbers.md

File metadata and controls

14 lines (12 loc) · 359 Bytes

Using a while loop create an array of a given size equal to the value of the size variable filling in random numbers between 0 and 10.

HINT : Use Math.random()*10 to generate the random numbers between 0 and 10

CODE TEMPLATE


let rand = [];
let size = 5;
//write your code here
console.log(rand);