Pergunta de entrevista da empresa Ciklum

How to fix closure problem with var variable inside the "for loop".

Resposta da entrevista

Sigiloso

21 de nov. de 2022

Use the "let" type of variable instead of var, to have block scope for value.