JavaScript math asin() method

The JavaScript math asin() method is used to get the arcsine of a number in radians. It returns NaN if number is not in the range of -1 to 1.

Syntax:

Math.asin(n)

Parameters
n: It represents the number whose arcsine have to be get.

Returns
Arcsine of a number

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.asin(1));   
</script>  
</body>
</html>

Output

1.5707963267948966
Please Share