How to representation not equal in JS?
Here is symbol representation of not equal
!(negation operator) as “not”,
||(boolean-or operator) as “or”
value = !!value;
value1 = 9
if (value1 != 8)
//if value1 IS NOT equal to 8 this block will be executed
alert("value1 is actually " + value1);
Do comment if you have any doubts and suggestions on tutorial.
Note: All JS Examples codes are tested on the Firefox browser and the Chrome browser.
OS: Windows 10
Code: HTML 5 Version