Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Math</h1>
<h2>The Math.atan() Method</h2>
<p>Math.atan() returns the arctangent (in radians) of a number:</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = Math.atan2(8, 4);
</script>
</body>
</html>