var, let, and const are three keywords used for variable declaration in Javascript. The var keyword is used in all Javascript since 1995, but let and const were introduced in ES6. In this article, we will discuss these three variable declarations with respect to their use, hoisting, scope, reassignment, and…