---
title: "Discussion on \"Javascript Interview Questions ( Promises and its Polyfills )\" | Hashnode"
description: "Discussion on \"Javascript Interview Questions ( Promises and its Polyfills )\". What are Promises?\nAccording to MDN The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.\nBasically it allows you to add handlers with an asynchronous action's eventual success value ..."
url: "https://hashnode.com/posts/javascript-interview-questions-promises-and-its-polyfills/631d94033e8d6f3497ad5706"
---

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

Discussion

# [Javascript Interview Questions ( Promises and its Polyfills )](https://roadsidecoder.hashnode.dev/javascript-interview-questions-promises-and-its-polyfills?utm_source=hashnode&utm_medium=feed)

What are Promises? According to MDN The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. Basically it allows you to add handlers with an asynchronous action's eventual success value ...

Sep 11, 2022 · 6 min read · roadsidecoder.hashnode.dev  
Updated Nov 24, 2022  
Read the article

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

## Written by

[Roadside Coder](https://hashnode.com/@RoadsideCoder)

@RoadsideCoder

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

App Development Tutorials

## Responses 3

Markdown supported · ⌘↵ to post

[Bishwajeet Pandey](https://hashnode.com/@bishwajeet49)

[Apr 9, 2024](https://hashnode.com/posts/javascript-interview-questions-promises-and-its-polyfills/631d94033e8d6f3497ad5706/comment/661538504b1307e5bc0e7441)

nice one

[Vinayak Phal](https://hashnode.com/@phalvinayak)

[Feb 22, 2023](https://hashnode.com/posts/javascript-interview-questions-promises-and-its-polyfills/631d94033e8d6f3497ad5706/comment/63f59eadf338bec1cf2df036)

PromiseRace implementation is not correct, it simply returns the last one. We can fix it by keeping a flag, which will set to true on first then or catch after that it will not trigger resolve or reject any more.

[kodanda reddy](https://hashnode.com/@kodanda)

[Sep 12, 2022](https://hashnode.com/posts/javascript-interview-questions-promises-and-its-polyfills/631d94033e8d6f3497ad5706/comment/631eeabdf73f4734bc05a3f9)

good work
