//AND Operator expressed as &&
const x = 7;
const y = 4;
(x == 7 && y == 5); // false
(x == 3 && y == 4); // false
(x == 7 && y == 4); // true
if (condition == value && condition == otherValue) {
return something;
}
const num = 6;
if (num <= 7 && num <= 8) {
console.log('true')
} else {
console.log('false')
}
//Expected output:true
// What is === operator in Javascript?
The strict equality operator ( === ) checks whether its two operands are equal, returning a Boolean result.
console.log(1 === 1); //true
console.log(1 === "1"); //false