HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The Math.asin() method returns the arcsine (in radians) of a number
The Math.asin()
method returns the arcsine (in radians) of a number.
The Math.asin()
method returns a value between -PI/2 and PI/2.
The Math.asin()
method expects a parameter in the range -1 to 1.
Math.asin(-1)
returns -PI/2.
Math.asin(0)
returns 0.
Math.asin(1)
returns PI/2.
Parameter | Description |
x | Required. A number. |
Type | Description |
Number | -PI/2 to PI/2.NaN if the parameter is not numeric or outside the range of -1 to 1. |
Math.asin()
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |