DEV Community

Discussion on: JavaScript: Write cleaner code with Functional Programming

Collapse
 
vonheikemen profile image
Heiker

The problem is not the browser, is me. I made a lot of mistakes while making that snippet, so I had to run it multiple times. If I use const I would have to keep changing the variable names after each attempt, 'cause const doesn't let me redeclare variables.