Globant interview question

Hoisting in JavaScript and how it works