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

The + Operator's Dual Nature

Why + prefers string concatenation when either operand is a string, leading to '2' + 2 = '22'.

This lesson is for subscribers

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