DEV Community

Discussion on: What is the oddest JavaScript behavior?

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Yeah, this is a good one. Most languages try to coerce only one side of an expression at a time, and won't ever coerce collection types to non-collection types.