I am making a dice game, for which I have to generate random number between 1-6.But I am only getting single number.
Console:
var randomNumber1 = Math.floor(Math.random() * 7) + 1;
undefined randomNumber1; 5 randomNumber1; 5 randomNumber1; 5
Aucun commentaire:
Enregistrer un commentaire