Javascript Hoisting

Whenever we write some code, we assume that the computer will understand it the way we have coded it, line-by-line. However, there is…