DEV Community

Discussion on: Is`let` the new `var` in Javascript?

Collapse
 
webbureaucrat profile image
webbureaucrat

I don't use either of them hardly at all unless I need to support a browser that only recognizes var. If I need to declare a value procedurally, I use const, but in most of my code I try to closely adhere to a stateless, functional style that evaluates instead of executes. Procedural code has caused me too many bugs. Highly-constrained code frees me to focus on the pure logic of my app.