I just ran into JavaScript code which looks like this:
let b = 0;
let d = 1 <b> 2;
console.log(d)
So what does <b> mean?
There is no <> operator in JavaScript. let d = 1 <b> 2; is the same as:
let d = (1 < b) > 2;
Which is always false, because 1 < b is either true or false and true > 2 and false > 2 are both false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With