or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")
not operator js
let a = true;
let b = !a;
console.log(b); //output: false
javascript if not
var isDay = false;
if (!isDay) { //Will execute if isDay is false
console.log("It's night");
}
javascript if or
let A = 1;
let B = 0;
if (A == 1 || B == 1){
// some code here
}
=== javascript
// === means equal value and equal type
var x = 5
// true
x === 5
// false
x === "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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us