JavaScript tan() Method
More "Try it Yourself" examples below.
Definition and Usage
The tan() method returns a number that represents the tangent of a number.
Browser Support
| Method | |||||
|---|---|---|---|---|---|
| tan() | Yes | Yes | Yes | Yes | Yes |
Syntax
Math.tan(x)
Parameter Values
| Parameter | Description |
|---|---|
| x | Required. A number, in radians, to find the tangent of |
Technical Details
| Return Value: | A Number, representing the tangent of a number |
|---|---|
| JavaScript Version: | ECMAScript 1 |
