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

Boolean Coercion in Logical Operators

How && and || don't coerce to boolean but return operands, causing 0 || 'default' patterns.

This lesson is for subscribers

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