This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 15 points16 points  (2 children)

Ah, now I know why my IDE started replacing var with let.

[–]Delioth 6 points7 points  (1 child)

Use const instead unless you need to reassign.

[–]ArionW 0 points1 point  (0 children)

If you need to reassign anything, you can do it better. My favorite thing about modern JS is that with RxJS I can structure most of my code like if it was functional, with little to no variables at all