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/ghostfacedcoder Oct 24 '16

Amen. What was wrong with "con"?

1

u/PitaJ Oct 24 '16

It's not a reserved word.

3

u/inu-no-policemen Oct 24 '16

That's true. const was a reserved word long before it got actually used. It already was in ES1's list of future reserved words. It has been there since 1997. import, export, and class also have been there since the beginning.

1

u/r2d2_21 Oct 24 '16

That's some heavy foreshadowing.