Course lesson
Simplify JavaScript code with Logical, Assignment and Optional Operators
The Logical Assignment Operators bring syntactic sugar over verbose syntax which enforced us to write explicit if statements. Thanks to the new operators ||=, &&= and ??= we can express the conditional logic in a more concise way.
- Duration
- 4 min
- Access
- Free
- Transcript
- Retained from source evidence
The Logical Assignment Operators bring syntactic sugar over verbose syntax which enforced us to write explicit if statements. Thanks to the new operators ||=, &&= and ??= we can express the conditional logic in a more concise way.