JavaScript math atan() method

The JavaScript math atan() method is used to get the arc-tangent of the given number in radians. It returns the value between -Math.PI/2 to Math.PI/2. Syntax: Math.atan(n) Parameters n: It represents the number whose arc-tangent has to be get. Returns Arc-tangent value of a number Example: <!DOCTYPE html> <html> <body> <script> document.writeln(Math.atan(0)); </script> </body> </html>