Compare two numbers : Integer : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Integer »

 

Compare two numbers

















<HTML>

<HEAD>

</HEAD>

<BODY>

<SCRIPT language="JavaScript">
<!--
var num1=0;
var num2=0;
if(num1==num2) {
 window.alert("True");
}
else {
 window.alert("False");
}
//-->
</SCRIPT>

</BODY>

</HTML>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Integer