Dassault Systèmes interview question

3) What is hoisting in JavaScript explain with example.