JavaScript tan() Method: Math Object
Description
The tan() method of math object is used to get the tangent of a number.
Version
Implemented in JavaScript 1.0
Syntax
tan(x)
Parameter
x: A number
Example:
In the following web document, tan() method returns the tangent of various numbers.
View the example in the browser
Supported Browser
Internet Explorer 7 | Firefox 3.6 | Google Chrome 7 | Safari 5.0.1 | Opera 10 |
Yes | Yes | Yes | Yes | Yes |
See also:
JavaScript Core objects, methods, properties.
Previous: JavaScript sqrt() Method: Math Object
Next:
Javascript Number Objects - Properties and Methods
Test your Programming skills with w3resource's quiz.