It does some funky things with type coercion and comparison which I don’t particularly like, but I generally understand why it does things that way.
A lot of the weird quirks of JS come from the desire to avoid completely blowing up and crashing as much as possible, which makes sense in a web dev context. Forcing weird operations to at least return something can prevent an unhandled error state in a single component from causing an entire page to crash, even if that component ends up malfunctioning.
It’s honestly incredible that Bing even still exists, much less is still being actively being pushed by M$