r/javascript • • Oct 24 '16

help The only thing I hate about const ...

... is that it is 5 chars long.

For some reason, let with its 3 chars, looks more elegant.

7 Upvotes

49 comments sorted by

View all comments

1

u/Gravyness Oct 25 '16

Didn't know people worried about that too. One of the things I liked about var is that you can type it with just your left hand.

Although it is useful and intuitive, I dislike the use of const, I'd rather just have it in the start of my code, usually for require()s.

1

u/vijeno Oct 25 '16

Type var, and on a commit hook, replace them with let. ;-)