Sunday, December 2, 2012

Disclosing the Javascript CLOSURE

This is my third post in the series - "Perplexed world of javascript" . It is very important and subtle concept , hence i will try to explain in a very intuitive way.

So i guess most of you must have been in relationship.Now what is the difference between "Breakup" and "Moving On"?

"Beakup" is an event and it is very visible and evident but not the "Moving On" , it is a very subtle in nature and it depends on people how many months , years or even decade ,it will take to completely "Move On".Now programming languages also behave in similar manner.

Lets try to figure out the output of the following code snippet.

//Code Snippet