English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.tan() Method

 JavaScript Math Object

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.

Syntax:

Math.tan(x)
Math.tan(45);
Test and see‹/›

Browser Compatibility

All browsers fully support the Math.tan() method:

Method
Math.tan()IsIsIsIsIs

Parameter Value

ParameterDescription
xA number expressed in radians to represent an angle

Technical Details

Return value:Tangent value of a given number
JavaScript Version:ECMAScript 1

 JavaScript Math Object