Question and answer is powered by AnsPress.io
I want to get a random number between 0 to 10 in javascript when clicking on a button.
return random integer from 0 to 10 in javascript
follow this example
Math.floor(Math.random() * 10)