One of the most important questions asked during a technical interview is about closures and hoisting. There are some pretty tricky questions regarding closures and hoisting; thus, this article will cover closures and hoisting from basic to advanced, so that the next time you are asked about these topics during your technical interview, you are able to excel without any hiccups.
Image 2: You may have heard about it, or even used it, but wasn’t sure about the concept
In simple terms, let’s take an example of a small circle within the bigger circle.
Image 3: Nested Circles / Nested Functions