Tricky JavaScript interview question asked by top tech companies

Click for: original source

Daniel Borowski take on a tricky Javascript question often asked by top tech companies like Google or Amazon. It is a short explanation, along with some solutions, of a popular JavaScript question that tends to get asked in developer interviews.

The question deals with the topics:

  • closures
  • setTimeout
  • and scoping.

The question tests your knowledge of some important JavaScript concepts, and because of how the JavaScript language works this is actually something that can come up quite often when you’re working — namely, needing to use setTimeout or some sort of async function within a loop.

Definitive a must read if you aspire to pass interviews in one of unicorns. Also included are links to further resources to help you know your JavaScript better. You can also practice solving JavaScript coding challenges on Coderbyte.

[Read More]

Tags javascript nodejs programming