Math.asin

Returns the arcsine of a number.

Syntax

asin(value)

Parameters

Return value

An arcsine of the value in radians.

Examples

Math.asin(1)
1.5707963267948966
Math.asin(2)
NaN