118
The JavaScript type coercion algorithm
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
In other languages that shouldn't be equal either though, right?
Maybe you meant
Which would output
and that would actually work in all languages I know. But that's different from being equal.
Yeah its checking for not null with if isnt it. Maybe thats what has me confused