Dler Ari
1 min readJun 9, 2018

--

Good question, someone have asked similar question on Stackoverflow.

for (const property in object) works because with each iteration you get a new variable, which is scoped only to that iteration

--

--

Dler Ari

Software Engineer sharing interesting tech topics