Course contentsShow
JavaScript
Lesson 220 of 2,7236. Booleans and ConditionalsPro lesson

Using || for Default Values

Use || to provide fallback values when a variable might be falsy (pre-nullish coalescing).

This lesson is for subscribers

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