Hello, how can I write a JavaScript code that creates random numbers from one to ten so that by clicking on a button, this JavaS | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 2

Hello, how can I write a JavaScript code that creates random numbers from one to ten so that by clicking on a button, this JavaS

28th Mar 2018, 7:47 PM
masoud
2 Réponses
0
Use onclick=“RandomNumbers()” and in JavaScript: function RandomNumbers(){ alert(Math.floor(Math.random()*11)); }
28th Mar 2018, 9:58 PM
Ariela
Ariela - avatar
28th Mar 2018, 9:58 PM
Ariela
Ariela - avatar