Course contentsShow
JavaScript
Lesson 1958 of 2,72341. Modern JavaScript Features (ES2020+)Pro lesson

The &&= (Logical AND Assignment) Operator

Using &&= to assign a value only if the left operand is truthy, replacing the pattern `x = x && newValue`.

This lesson is for subscribers

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