JavaScript let vs var: Scope, Hoisting, and When to Use Each | CodeTrail