Course contentsShow
JavaScript
Lesson 290 of 2,7238. Type CoercionPro lesson

The {} + [] vs [] + {} Asymmetry

Why {} + [] can be 0 due to parsing ambiguity, while [] + {} is '[object Object]'.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.