Ciena interview question

Why hoisting we need in javascript?