JavaScript math asin() method

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

Syntax:

Math.asin(n)

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

Returns
Arcsine of a number

Example:

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