Extramarks interview question

Explain about javascript hoisting with example?