e-con Systems Interview Question

Explain Hoisting in JavaScript. Why do we use the word “debugger” in javascript?