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 has to be get. Returns Tangent of a number. Example: <!DOCTYPE html> <html> <body> <script> document.writeln(Math.tan(1)); </script> </body> </html>