greater than or equal than >=
and lower than or equal than <=
strict versions in JavaScript? Similar to ===
and !==
.
example:
false >= 0
true
false >== 0
VM174:2 Uncaught SyntaxError: Unexpected token =(…)
For "Y you will ever need it?"
!undefined >= 0 // some bad code like this in 10000 rows for example
true
example of defined strict versions, greater or equal than strict and respectively the other way around can be defined too.
function gtEStrict(arg1,arg2){
if ( typeof arg1 === typeof arg2 ) {
if ( arg1 >= arg2 ) {
return true;
}
}
return false;
}
gtEStrict(0,0)
true
gtEStrict(!undefined,0)
false