Another Weird Looking JavaScript Operator?

Published: 30 April 2024
on channel: Good Morning Developers
154
16

The logical and assignment... &&= an ES 12 update in ECMAScript 2021 that looks bizarre but is another handy way to check for values before doing "x" operation. It checks to see if the thing on the left has a value (is truthy) and if so, overwrites it with the right! Click subscribe to keep on top of JavaScript Tuesday and I'll see you next time!

ES Update Playlist:    • EcmaScript Updates  
Code: https://github.com/robertbunch/es-next
History of ECMAScript/JavaScript (long) -    • Visual Timeline of JavaScript and ECM...  
History of ECMAScript/JavaScript (shorter) -    • Visual Timeline of JavaScript and ECM...  

0:00 - Introduction
0:59 - Example
2:25 - Truthy
2:46 -What it really does
3:40 - Short-circuiting
5:15 -Doc wrap-up


Watch video Another Weird Looking JavaScript Operator? online without registration, duration hours minute second in high quality. This video was added by user Good Morning Developers 30 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15 once and liked it 1 people.