In this Hasty Treat, Scott and Wes talk about nothing — null, undefined, void, false, 0, ‘’, NaN, [], {}, never — all sorts of values that could mean the things that do not exist.
Prismic is a Headless CMS that makes it easy to build website pages as a set of components. Break pages into sections of components using React, Vue, or whatever you like. Make corresponding Slices in Prismic. Start building pages dynamically in minutes. Get started at prismic.io/syntax.
LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
03:35 - Undefined
04:25 - Null
04:41 - Null vs Undefined
05:35 - Void
onSubmit="javascript:void()"
is a quick-n-easy prevent default on forms09:15 - Never (in Typescript)
if(true == false) { let var = 'this will never be true'; }
11:05 - Falsy values
📆 2021-01-06 15:00 / ⌛ 00:54:08
📆 2021-01-04 15:00 / ⌛ 00:26:49
📆 2020-12-30 15:00 / ⌛ 01:06:48
📆 2020-12-28 15:00 / ⌛ 00:26:40