Var, Let, and Const
Quick note: Older technology and legacy code bases may continue to use “var” to declare all variables, be sure to check with any superiors or more experienced programmers before making any large changes to existing bases.
Declaring vs Defining
The second piece to this is defining the variable. Now, any time a variable is created, it starts with being declared, or in essence, identified. For example, consider code below.