JavaScript Objects The Math Object- Math asin() - Javascript Objects

What is JavaScript - Math asin Method?

JavaScript - Math asin Method returns the arcsine in radians of a number. The asin method will return a numeric value between -pi/2 and pi/2 radians for x between -1 and 1. If the value of the number is outside the range given, then it returns NaN.


Its syntax is as below −

Parameter Details

x − A number.

Return Value

It Returns the arcsine in radians of a number.


Try the following sample example program.


First Test Value : -1.5707963267948966

Second Test Value : 0

Third Test Value : NaN

Fourth Test Value : NaN

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Javascript Objects Topics