Use let and const for variable declarations

Here are some resources regarding the use of let and const: