---
title: "Comment by Miki Szeles on \"JavaScript promises explained\" | Hashnode"
description: "Great article, Tomek. 👏👏 I remember how confusing was when I first faced promises. Your article explains them well. What are the usecases of already resolved"
url: "https://hashnode.com/posts/javascript-promises-explained/628c9856bc26026fa45c32ea/comment/628cba43b4bd016fc9a30b63"
---

[Discussion](https://hashnode.com/posts/javascript-promises-explained/628c9856bc26026fa45c32ea)

Comment [JavaScript promises explained](https://hashnode.com/posts/javascript-promises-explained/628c9856bc26026fa45c32ea)

[Miki Szeles](https://hashnode.com/@mszeles)

[May 24, 2022](https://hashnode.com/posts/javascript-promises-explained/628c9856bc26026fa45c32ea/comment/628cba43b4bd016fc9a30b63)

Great article, Tomek. 👏👏

I remember how confusing was when I first faced promises. Your article explains them well.

What are the usecases of already resolved or rejected promises?

[Tomek Skupiński](https://hashnode.com/@focusinsky)

[May 24, 2022](https://hashnode.com/posts/javascript-promises-explained/628c9856bc26026fa45c32ea/comment/628cba43b4bd016fc9a30b63#reply-628cf60ebc26026fa45c44f2)

That's a valid question. I haven't used them (still learning JS and treating these articles as a brain dump after each topic I go through). But the first idea that comes to my mind would be using them in tests whenever I wanna stub some async function. Do you think it would work?

[Miki Szeles](https://hashnode.com/@mszeles)

[May 24, 2022](https://hashnode.com/posts/javascript-promises-explained/628c9856bc26026fa45c32ea/comment/628cba43b4bd016fc9a30b63#reply-628cfcdab4bd016fc9a31b22)

Good question, I have no idea, [Tomek Skupiński](https://hashnode.com/@focusinsky) and I am too tired to google it. 🤣🤣🤣
