Prev Demo
Returning The Arcsine Of Different Values
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Returning the arcsine of different values</h1> <p>Click the below button to return arcsine value</p> <input type="button" onclick="myFunction()" value="Click"> <p id="myId"></p> <script> function myFunction() { var a = Math.asin(0.3); var b = Math.asin(-0.3); var c = Math.asin(-1.3); var d = Math.asin(1.3); var r = "The arcsine value of 0.3 is :" + a +"<br>" + "The arcsine value of -0.3 is :" + b + "<br>" + "The arcsine value of -1.3 is :" + c + "<br>" +"The arcsine value of 0.3 is :" + d; document.getElementById("myId").innerHTML = r; } </script> <p><strong>Note:</strong>If the input value of arcsine method is not in range between -1 to 1, the output shows NaN.</p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output