Prev Demo
Not Equal To Operator With Two Same Values In Javascript
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Not equal to operator with same values</h1> <b>Assigning 'a' value as 30 and checking the value with '30' in not equal to operator, so the result gives</b> <p id="myId"></p> <script> var a = 30; document.getElementById("myId").innerHTML = (a != 30); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output