June 2016
Intermediate to advanced
910 pages
18h 59m
English
ES6 adds a lot of new methods to the Math object, related to trigonometry, arithmetic, and miscellaneous. This lets the developers use native methods instead of external math libraries. Native methods are optimized for performance, and have better decimal precision.
Here is an example code, which shows the entire trigonometry-related methods that are added to the Math object:
console.log(Math.sinh(0)); //hyberbolic sine of a value console.log(Math.cosh(0)); //hyberbolic cosine of a value console.log(Math.tanh(0)); //hyberbolic tangent of a value console.log(Math.asinh(0)); //inverse hyperbolic sine of a value console.log(Math.acosh(1)); //inverse hyperbolic cosine of a value console.log(Math.atanh(0)); ...
Read now
Unlock full access