Todd Davis
Feb 29, 2024

--

Thanks for sharing. We are definitely in a culture where hiring managers think it's "cool" and "helpful" to ask questions that would be very unlikely to happen. I've been a dev for 23+ years and have yet to work for an employer who needed fizz-buzz to solve their problems, ya know?

I can say I did know the answer, however, I can also tell you, it's very unlikely anyone would ever put a try/catch around a promise because promises have their own catch() syntax:

fetch('https://no-such-server.blabla') // rejects

.then(response => response.json())

.catch(err => alert(err)) // TypeError: failed to fetch

While there are use cases for it, they are slim, and in most cases, could be handled differently.

Thanks again for sharing! It's a tough world looking for jobs right now.

--

--

Todd Davis
Todd Davis

Written by Todd Davis

This is my life. These are my words. If I choose to own my life story, then I can decide how the story ends.

No responses yet