Pergunta de entrevista da empresa Interpreta

What is hoisting in JavaScript and how does it work?