---
title: "Discussion on \"Creating a JavaScript promise from scratch, Part 4: Promise.resolve() and Promise.reject()\" | Hashnode"
description: "Discussion on \"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.\nWhen 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..."
url: "https://hashnode.com/posts/creating-a-javascript-promise-from-scratch-part-4-promiseresolve-and-promisereject/5f90a6dac626a0545fb607ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating a JavaScript promise from scratch, Part 4: Promise.resolve() and Promise.reject()](https://hashnode.humanwhocodes.com/creating-a-javascript-promise-from-scratch-part-4-promiseresolve-and-promisereject?utm_source=hashnode&utm_medium=feed)

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...

Oct 13, 2020 · 8 min read · hashnode.humanwhocodes.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#promises](https://hashnode.com/tag/promises)
-   [#ecmascript6](https://hashnode.com/tag/ecmascript6)

## Written by

[Nicholas Zakas](https://hashnode.com/@humanwhocodes)

@humanwhocodes

  
[View profile](https://hashnode.com/@humanwhocodes)

People, programming, and everything in between

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
