UST interview question

Explain javascript hoisting in detail