loading...

re: Demystifying "const" variables in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I use const all the time. It's very rare that I need let. I can see let being used as an index in a for loop, but I almost never need a for loop. ...
 

We're in the same boat! I try to avoid let and even loops, which people think I'm crazy for.

 

Map, Filter and Reduce are loops, but they are immutable for the purpose of us devs.

They're declarative loops, but yes definitely loops.

code of conduct - report abuse