ES6 - Math.asin(x) Function



This function returns the inverse sine of x.

Syntax

Math.asin(x)      

Parameter

  • X − 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       
Advertisements