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 Now
Next TopicJavaScript Math
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week