Pregunta de entrevista de GE

Javascript questions, about the weird functionality of javascript (like hoisting)