Most voted "hoisting" questions
2 questions
Sort by count of
-
5
votes1
answer425
viewsWhat is Hoisting’s utility in Javascript?
Before ES6, all variables of a function are created independent of JS scope. That is to say: if(false) { var mensagem = "Olá!"; // declaração + atribuição } console.log(mensagem); => undefined…
-
0
votes1
answer56
viewsExplanation Hoisting Javascript
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);…