Oh, That's Why.

EP12 — Truthy & Falsy Values

10 min · Ayer
Portada del episodio EP12 — Truthy & Falsy Values

Descripción

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.

Comentarios

0

Sé la primera persona en comentar

¡Regístrate ahora y únete a la comunidad de Oh, That's Why.!

Empezar

2 meses por 1 €

Después 4,99 € / mes · Cancela cuando quieras.

  • Podcasts exclusivos
  • 20 horas de audiolibros / mes
  • Podcast gratuitos

Todos los episodios

12 episodios