DEV Community

Discussion on: Today's JavaScript React Dev interview Question

Collapse
 
oathkeeper profile image
Divyesh Parmar

I think the reason he dropped your polling function is because you didn't make it return anything.

Yeah because I mentioned him 3 times that I don't know about this function and I was still talking about my approach on how it should go ahead. Same for the PromiseAll question.

Promise.all accepts an array of promises and returns a promise.

I do understand this but what confuses me is that I have read it on javascript.info and other resources as well that it returns an array of resolved promises, is that correct? javascript.info/promise-api

Thank you for the positive response I feel good about it now! Hahaha! BTW how much is it good to be judged only on basis of this? I feel that it shouldn't go this way all the time, right? This isn't my first time and as you can see from my previous posts I have given many of such!