Ovis Creative Interview Question

How does hoisting work in JavaScript?