---
title: "Vinayak Phal (@phalvinayak) | Hashnode"
description: "Vinayak Phal (@phalvinayak) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@phalvinayak"
---

@phalvinayak

# Vinayak Phal

@phalvinayak · Joined February 2023

## Comments

[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.](https://hashnode.com/posts/javascript-interview-questions-promises-and-its-polyfills/631d94033e8d6f3497ad5706/comment/63f59eadf338bec1cf2df036)

Comment · Article · Feb 22, 2023 · [Javascript Interview Questions ( Promises and its Polyfills )](https://hashnode.com/posts/javascript-interview-questions-promises-and-its-polyfills/631d94033e8d6f3497ad5706)
