What is the difference between let, var and const in JavaScript?
With JavaScript users can declare variables using three keywords: let, var as well as const. The words var let and const can be a bit confusing. We will go over all three variables using examples. The difference between the variables var, let as well as const is described below in different ways.
- Reassign the value
- Re-declaration of the variable
- Scope
- Hoisting
NOTE: If you would like to learn more about the differences between Let, Var, and Const, you should visit this site.
BY Best Interview Question ON 13 Jan 2023