<html>
<body>
<p id="demo">Click the button to display the tangent of the number 90</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML=Math.tan(90);
}
</script>
</body>
</html>