News for hackers. Stuff that matters.
Re:GitHub's Web Component Collection by 40four on Friday March 12, 2021 @02:03PM (#26439531)
As others have said, each time through the loop ‘resets’ the scope.

But on this subject, at this point, my rule of thumb is to always use ‘const’ first, until I find myself in a situation where I’m forced to change it to ‘let’.

If I’ve gotten into a situation where it seems like I need to use a ‘var’, then I seriously take a minute to rethink the implementation :)

There are no comments on this comment yet.