Use not identically equal operator in JavaScript
Description
The following code shows how to use not identically equal operator.
Example
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
var sNum = "55";<!--from ww w .ja va 2 s . c om-->
var iNum = 55;
document.writeln(sNum != iNum);
document.writeln(sNum !=="iNum);
</script>
</body>
</html>
The code above generates the following result.
Javascript Tutorial Comparison
Find the absolute value with Tenary operato...
Use Comparison Operator to compare to numbe...
Use Greater Than operator to compare string...
Use Greater Than or Equal operator in JavaS...
Use Identically Equal operator to check bot...
Use Less Than operator to compare string an...
Use Less Than or Equal Operator in JavaScri...
Use Tenary operator(Conditional Operator) i...
Use not equal operator to compare a string ...
Find the absolute value with Tenary operato...
Use Comparison Operator to compare to numbe...
Use Greater Than operator to compare string...
Use Greater Than or Equal operator in JavaS...
Use Identically Equal operator to check bot...
Use Less Than operator to compare string an...
Use Less Than or Equal Operator in JavaScri...
Use Tenary operator(Conditional Operator) i...
Use not equal operator to compare a string ...