Hoisting is a special behavior of the JavaScript interpreter. Hoisting means that function and variable declarations are moved to the top of their containing scope.
Variables Hoisting
In JavaScript, variables are declared using let, const, and var. A...