Create a Function to roll a dice & always display the value of the dice (1 to 6).

 


function ran (){

  let rand = Math.floor(Math.random() * 6) + 1

console.log(rand);

}

ran()


Comments

Popular posts from this blog

practice test of Arithmetic Operations: