Q:

not equal to in js

!= not equal 
!== not equal value OR type
1
let a=12
if(a!=5){
  console.log(true)
}
since a is not equal to 5, it will print true
1
0 !== "0"
0 !== 0
1
<b>way to write Not equal to operator in JavaScript.</b>
<p id="myId"></p>

<script>
 if(list.value.length !=0){
 console.log("CHECK")
 }
</script>
0

New to Communities?

Join the community