Pergunta de entrevista da empresa Mindera

Explain Hoisting in javascript and what's its benefit.