JavaScript math tan() method

The JavaScript math tan() method is used to get the tangent of a number.
Syntax:

Math.tan(n)

Parameters
n: It represents the number whose tangent have to be get.

Returns
Tangent of a number.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.tan(1));  
</script>  
</body>
</html>

Output

1.5574077246549023
Please Share