Hoisting and Execution Context

How does variable shadowing affect hoisting in nested scopes?
var x = 1;
function foo() {
  console.log(x);
  var x = 2;
}
foo();
Next Question (11/20)