<html>
<body>
<h2>JavaScript Math</h2>
<p>Math.sign() retuns whether a number is negative, positive or zero:</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = Math.sign(3);
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_sign by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:11 GMT -->
</html>