javascript is equal to code example

Example 1: less than or equal js

>= // greater than or equal 
<= // less than or equal
> // greater than
< // less than
== // equals
=== // strictly equals
!= // not equals
!== // stricly not equals

Example 2: less than or equal to javascript

if(a <= 5){
   yourFunction();
}

Example 3: javascript not equal

0 !== "0"
0 !== 0

Example 4: not equal to in js

let a=12
if(a!=5){
  console.log(true)
}
since a is not equal to 5, it will print true

Example 5: js !==

var x = 5;

// === 	equal value and equal type
// e.g. 1. 
x === 5 returns true

// e.g. 2.
x === "5" returns false

// !== not equal value or not equal type
// e.g. 1.
x !== 5 returns false

// e.g. 2.
x !== "5" returns true

// e.g. 3.
x !== 8 returns true