jquery operators list code example
Example 1: or operator javascript
var a = 2;
var b = 5;
var c = 10;
if (a === 3 || a === 2) {
console.log("TRUE");
} else {console.log("FALSE");}
if (a === 4 || b === 3 || c === 11) {
console.log("TRUE");
} else {console.log("FALSE");}
if (b === 5 || c != 10) {
console.log("TRUE");
} else {console.log("FALSE");}
Example 2: less than equal to in javascript
| <= | less than or equal to | x <= 8 | true |
Example 3: javascript ... operator
var [head, ...tail] = ["Hello", "I" , "am", "Sarah"];
console.log(head);
console.log(tail);
let a = [2,3,4];
Math.max(a)
Math.max(...a)