Javascript for Statement Display Random Numbers

Description

Javascript for Statement Display Random Numbers

let value;/*from  w w  w.  j av  a 2 s .c o m*/

for ( let i = 1; i <= 20; i++ ) 
{
   value = Math.floor( 1 + Math.random() * 6 );
   console.log( value );

} // end for



PreviousNext

Related