Prev Demo
JavaScript
>
Euler's Number
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click the below button to return Square root of 1/2.</p> <input type="button" onclick="myNumber()" value="Click"> <p id="myId"></p> <script> function myNumber() { document.getElementById("myId").innerHTML = Math.SQRT1_2; } </script> </hr> <p>Click the below button to return Square root of 2.</p> <input type="button" onclick="myFunction()" value="Click"> <p id="Demo"></p> <script> function myFunction() { document.getElementById("Demo").innerHTML = Math.SQRT2; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output