js or 1

js or

// ===	means equal value and equal type
var x = 5

// true
x === 5

// false
x === "5"

Here is what the above code is Doing:
1. We create a variable called x and set it equal to 5.
2. We check if x is equal to 5. Since it is, we get true.
3. We check if x is equal to “5”. Since it’s not, we get false.

Similar Posts