JavaScript Math asin() methodThe JavaScript math asin() method returns the arcsine of the given number in the form of radians. The asin() method must be in the range -1 to 1, otherwise it returns NaN. SyntaxThe asin() method is represented by the following syntax: Parameternum - A number. ReturnThe arcsine of the number. JavaScript Math asin() method exampleHere, we will understand asin() method through various examples. Example 1Let's see a simple example of asin() method. Test it NowOutput: -1.5707963267948966 0 0.5235987755982989 1.5707963267948966 Example 2Let's see some cases where asin() method returns NaN. Test it NowOutput: NaN NaN NaN Example 3Here, you can test asin() method with your own test cases. Test it NowNext TopicJavaScript Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India