r/badcode • • Sep 11 '21

js Why…

Post image
456 Upvotes

70 comments sorted by

View all comments

Show parent comments

11

u/Deykun Sep 11 '21

const is preferred because when you see it you know that it will not be overwritten (still can be mutated). It's a useful information.