is not a boolean operator javascript code example
Example 1: javascript
||// || means or
Example 2: || in js
const a = 3;
const b = -2;
console.log(a > 0 || b > 0);
// expected output: true
||// || means or
const a = 3;
const b = -2;
console.log(a > 0 || b > 0);
// expected output: true