Pergunta de entrevista da empresa commercetools

A popular interview question testing understanding of function/block scope and closures. The code consisted of a loop and setTimeout and was written on the whiteboard.