# Help Me With Promises in JS

**URL:** <https://forum.freecodecamp.org/t/help-me-with-promises-in-js/403531>\
**Category:** General\
**Created:** [June 14, 2020, 8:13pm UTC](https://forum.freecodecamp.org/t/help-me-with-promises-in-js/403531 "2020-06-14T20:13:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![makeevvd1](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@makeevvd1](https://forum.freecodecamp.org/u/makeevvd1)\
**Post date:** [June 14, 2020, 8:13pm UTC](https://forum.freecodecamp.org/t/help-me-with-promises-in-js/403531/1 "2020-06-14T20:13:10Z")

</div>

I study promises in here: [https://javascript.info/promise-basics#tasks](https://javascript.info/promise-basics#tasks)

And there is a solution for 3rd exercise in sandbox: [https://plnkr.co/edit/Q1jyGXvy9INMRG3Y?p=preview&preview](https://plnkr.co/edit/Q1jyGXvy9INMRG3Y?p=preview&preview)

My question is: what is the point of setTimeout inside of promise? Why code breaks when I delete setTimeout?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:49pm UTC](https://forum.freecodecamp.org/t/help-me-with-promises-in-js/403531/2 "2021-06-01T18:49:56Z")

</div>

Closed on June 1, 2021, 6:49pm UTC


