What is the difference between let, var and const?
With JavaScript, the user can declare variables with three keywords, which are let, var, and const. The terms var let and const are somewhat confusing. We will explain all 3 variables with the help of examples.
The difference between the variables var, let as well as const is described below in different ways.
- Scope
- Hoisting
- Reassign the value
- Redeclaration of the variable
NOTE: If you want to read more about the difference between var, let as well as const then you can visit here.
BY Best Interview Question ON 12 Sep 2022