Creating 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...
hashnode.humanwhocodes.com8 min read