ternary operator w3 code example
Example 1: less than or equal to javascript
if(a <= 5){
yourFunction();
}
Example 2: js ===
5 =='5' // true: ignores type
5 === '5' // false: includes type
if(a <= 5){
yourFunction();
}
5 =='5' // true: ignores type
5 === '5' // false: includes type