Table of contents Home page
Execute this code
var d = prompt("Enter the value of a sine.") if (d != null && !isNaN(d)) { if (d >= -1 && d <= 1) { alert("The arc sine of " + d + " is " + Math.asin(d) + ".") } else { alert("A sine cannot have the value " + d + ".") } }