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