UST Interview Question

Explain javascript hoisting in detail