English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Math.tan()) method returns a value representing the tangent of the angle.
Since tan() is a static method of Math, you should always use it asMath.tan(), rather than as a method of the created Math object.
Math.tan(x)
Math.tan(45);Test and see‹/›
All browsers fully support the Math.tan() method:
Method | |||||
Math.tan() | Is | Is | Is | Is | Is |
Parameter | Description |
---|---|
x | A number expressed in radians to represent an angle |
Return value: | Tangent value of a given number |
---|---|
JavaScript Version: | ECMAScript 1 |