NZNicholas Zakasinhashnode.humanwhocodes.com·Feb 16, 2021 · 9 min readIntroducing Env: A better way to read environment variables in JavaScriptThis post originally appeared on the Human Who Codes blog on February 16, 2021. If you write server-side JavaScript, chances are you've need to read information from environment variables. It's considered a best practice to share sensitive informatio...00
NZNicholas Zakasinhashnode.humanwhocodes.com·Jan 19, 2021 · 29 min readCreating a JavaScript promise from scratch, part 7: Unhandled promise rejectionsThis post originally appeared on the Human Who Codes blog on January 19, 2021. When promises were introduced in ECMAScript 2015, they had an interesting flaw: if a promise didn't have a rejection handler and was later rejected, you would have no idea...00
NZNicholas Zakasinhashnode.humanwhocodes.com·Dec 16, 2020 · 17 min readCreating a JavaScript promise from scratch, Part 6: Promise.all() and Promise.allSettled()This post originally appeared on the Human Who Codes blog on December 16, 2020. In my last post, I walked you through the creation of the Promice.race() and Promise.any() methods, both of which work on multiple promises and return a single promise th...00
NZNicholas Zakasinhashnode.humanwhocodes.com·Oct 13, 2020 · 8 min readCreating a JavaScript promise from scratch, Part 4: Promise.resolve() and Promise.reject()This post originally appeared on the Human Who Codes blog on October 13, 2020. When you create a promise with the Promise constructor, you're creating an unsettled promise, meaning the promise state is pending until either the resolve or reject funct...00
NZNicholas Zakasinhashnode.humanwhocodes.com·Oct 6, 2020 · 30 min readCreating a JavaScript promise from scratch, Part 3: then(), catch(), and finally()This post originally appeared on the Human Who Codes blog on October 6, 2020. In my first post of this series, I explained how the Promise constructor works by recreating it as the Pledge constructor. In the second post in this series, I explained ho...00