Pregunta de entrevista de Ciklum

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

Respuesta de la entrevista

Anónimo

21 nov 2022

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