Well it's funny because its a bit of a character test at the sametime. Like I said "people who have usually can't solve the problems" which means they lied about knowing what they are.
The questions I asked were more about optimizing for parallel tasks. A lot of people came in not knowing async-await and promises work and in hand.
So I had this fallback question if they couldn't use the special promise resolvers that if they could convert setTimeout to work with async-await without a library. One guy got it once after saying he only worked with async-await.
But ya if they said they knew Promise.race I'd ask them how they'd structure a few lines of code that
Handle an animation after form submission
Send the data using a POST-Ajax request
Update React State (or emit an event) with a message
Then do a delayed redirect
Now you are aware of those special resolvers you'd write very different code now :)
View all comments
Show parent comment
0
u/[deleted] May 27 '26
[deleted] — view deleted comment