Pergunta de entrevista da empresa Ovis Creative

How does hoisting work in JavaScript?