Mindera interview question

Explain Hoisting in javascript and what's its benefit.