0
In Javascript, every variable that is declared with the keyword var is "high" (Hoisting) to the top of the execution context, right?
function testandoMsg (){
let b = 'B';
console.log(a);
console.log(b);
var a = 'A';
}
testandoMsg();
If the var
is played to the top of the function because of Hoisting, because it gives Undefined on execution?
How Hoisting Works at ES6? and What is Hoisting’s utility in Javascript?
– rray
Thank you, rray!
– Lucas de Carvalho