Return to Kroll Design home page

JavaScript Tutorials

 
« Return

inequality operator !=

The inequality operator consists of an exclamation point followed by an equal sign: !=
It is NOT this symbol: <>

Code:

<script type="text/javascript">
//<![CDATA[
a = 2;
b = 2;
c = 5;
document.write("a != b : ", a!=b, "<br />");
document.write("b != c : ", b!=c, "<br />");
//]]>
</script>

Output:



 
« Return


©2012 Kroll Design    info@KrollDesign.net    781.910.3694
Last modified: 12/31/1969 7:00 PM