let x = Math.asin(-1);
Try it Yourself »
let x = Math.asin(0);
Try it Yourself »
let x = Math.asin(1);
Try it Yourself »
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.
Math.asin(
x)
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 | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!