Another Weird Looking JavaScript Operator?

Pubblicato il: 30 aprile 2024
sul canale di: Good Morning Developers
183
15

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 ECMAScri...  
History of ECMAScript/JavaScript (shorter) -    • Visual Timeline of JavaScript and ECMAScri...  

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


In questa pagina del sito puoi guardare il video online Another Weird Looking JavaScript Operator? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Good Morning Developers 30 aprile 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 183 volte e gli è piaciuto 15 spettatori. Buona visione!