Created
October 18, 2019 12:07
-
-
Save CodersArts/9663aa540c38da4ceb6c6caac2310eeb to your computer and use it in GitHub Desktop.
It returns random integers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math</h2> | |
<p>Math.floor(Math.random() * 20) returns a random integer between 0 and 19 (both | |
included):</p> | |
<p id="demo"></p> | |
<script> | |
document.getElementById("demo").innerHTML = | |
Math.floor(Math.random() * 20); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment