Try it
Javascript
Jquery
Angular
Learn Angular
Learn Javascript
Learn Bootstrap
Learn jQuery
ComparisonOperator-3
Comparison Operator
val!= 9
will return true because value assigned is 8.
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> var val= 8; document.getElementById("sample").innerHTML = (val!= 9); </script> </body> </html>
Output
×
Save This try
Title
Description
<p>Comparison Operator <code>val!= 9</code> will return true because value assigned is 8.</p>