tan

The Math.tan() method returns the tangent of a number.

Syntax

Math.tan(x)

Returns

The tangent of the number. NaN if the number is empty or not numeric.

Parameters

x (float)
A number representing radians.