- 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
2 Answers
0
Use onclick=âRandomNumbers()â and in JavaScript:
function RandomNumbers(){
alert(Math.floor(Math.random()*11));
}
0
For info about random:
https://www.w3schools.com/js/js_random.asp