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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 useconst
, 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.