Pregunta de entrevista de Ovis Creative

How does hoisting work in JavaScript?