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

-2

u/kevinkace Oct 24 '16

Agreed, for primarily aligning single const declarations, eg:

let thing1 = "thing1",
    thing2 = "thing2"; // nicely aligned

const thing3 = "thing3",
    thing4 = "thing4"; // like this with standard 4 spaces?

const thing5 = "thing5",
      thing6 = "thing6"; // or like this to align?

2

u/Cuel Oct 24 '16

Easy solution, don't align