Javascript Variables Const vs Let

Declaring Variables: Let vs Cost

Let:

The main advantage of using let is that you can't redeclare the same variable a second time. This is helpful when writing lengthy code. While we can't redeclare the variable, re can REASSIGN the variable's value.

Cost:

This should be your go-to option for declaring variables. With const, a variable CANNOT be redeclared or reassigned.

let: use when you know the value of the variable will change

const: use for every other option