Oh, That's Why.

EP12 — Truthy & Falsy Values

10 min · Gestern
Episode EP12 — Truthy & Falsy Values Cover

Beschreibung

Your condition fails on zero. An empty string passes when it should not. An empty array is truthy when you expected false. In this episode, Alex Vega explains the six falsy values, why those six and not others, and the three logical operator patterns — OR defaults, AND guards, and nullish coalescing — that depend on this every day. Oh, That's Why. — JavaScript, finally making sense. You can find the Medium article here [https://medium.com/@gize.bonilla/243662e24b3d]. #JavaScript, #Web Development, #Programming, #Software Engineering, #Learning to Code.

Kommentare

0

Sei die erste Person, die kommentiert

Melde dich jetzt an und werde Teil der Oh, That's Why.-Community!

Loslegen

2 Monate für 1 €

Dann 4,99 € / Monat · Jederzeit kündbar.

  • Podcasts nur bei Podimo
  • 20 Stunden Hörbücher / Monat
  • Alle kostenlosen Podcasts

Alle Folgen

12 Folgen