Ask HN: Does JavaScript have race conditions?
During an interview, I was asked how to avoid race conditions in JavaScript. When I explained why JS did not have race conditions(single threaded event loop) the interviewer looked unhappy. I googled and received mixed answers. Some say yes while others say no. Any experts here can help me with this confusion?