Frage im Vorstellungsgespräch bei Ciklum

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

Antwort im Vorstellungsgespräch

Anonym

21. Nov. 2022

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