JavaScript returns a random number between 0 and 1

From , 5 Years ago, written in JavaScript, viewed 87 times.
URL https://pastebin.vip/view/e5abba84
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <p id="demo">Click the button to display a random number.</p>
  6.  
  7. <button onclick="myFunction()">Try it</button>
  8.  
  9. <script>
  10. function myFunction()
  11. {
  12. document.getElementById("demo").innerHTML=Math.random();
  13. }
  14. </script>
  15.  
  16. </body>
  17. </html>
  18.  
  19. //javascript/7874

Reply to "JavaScript returns a random number between 0 and 1"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website