Compare the value for integer numbers
<HTML> <BODY> <SCRIPT language="JavaScript"> var num1 = 0; var num2 = 0; if(num1 == num2) { window.alert("True"); } else { window.alert("False"); } </SCRIPT> </BODY> </HTML>