News for hackers. Stuff that matters.
Re:GitHub's Web Component Collection by ihuman on Friday March 12, 2021 @01:29PM (#26439074)
Each iteration is a new scope, so you need to redefine the variable. If you used an if statement to define the variable in only one iteration of the loop, then the reference will be undefined in future iterations.

There are no comments on this comment yet.