Pergunta de entrevista da empresa Bentley Systems

Showed me a piece of JavaScript code and had to explain what was happening