Hoisting in JavaScript
Hoisting is one of the most confusing topics for javascript beginners. When I started learning javascript, I found this strange and was very confused.
Today I will try to explain hoisting as easy as possible. Before driving deep into theory, lets see some cases…