ES6 - Math.asin(x) Function


Advertisements


This function returns the inverse sine of x.

Syntax

Math.asin(x)      

Parameter

  • X1 − represents a number

Example

console.log("---Math.asin()---") 
console.log("Math.asin(0): "+Math.asin(0)) 
console.log("Math.asin(Math.SQRT1_2): "+Math.asin(Math.SQRT1_2))          

Output

---Math.asin()--- 
Math.asin(0): 0 
Math.asin(Math.SQRT1_2): 0.7853981633974484       

es6_math.htm

Advertisements