@alcinnz There's a few exceptions for when to use var, or at least, that you have to keep in mind. That both const and let are block scoped and thus with certain programming paradigms in Javascript it can contain values you don't expect (or rather, variables not being usable).
@alcinnz Also it is easier to just use let, i agree, but it is better to take const as your default, as it is the first step into not working yourself in corners with updating values of variables and its side-effects. :)
(only able to use var was certainly simpler times 😁 )