3 ms·
JS has a very "unique" opinion that that is how that should be interpreted. Given the same input as above: Python says True. Ruby says true. JS says false.
by ThePadawan 5y ago
JS has a very "unique" opinion that that is how that should be interpreted. Given the same input as above:
Python says True.
Ruby says true.
JS says false.
And otherwise, JS is quite lenient with not interpreting the input like you describe it when using "==":
> [] == 0
< true
> [] == false
< true