AT&T interview question

Explain JavaScript hoisting