This lesson is continuation of the previous post on constructor functions. We ended the last lesson by asking a question. What if the new keyword is not used ?
In the previous lesson [Lesson 1][lesson 2] on Objects, the value of a property was fixed, i.e. the value was assigned by us on the object definition itself. Lets recall with an example:
First it was limited to school children, then a School Teacher started doing it, then a Civil Engineer did it and now it has crossed all limits when a Computer Science Engineer did it.
By now we know what closures are. [Closures-Part1][Closures-Part2] In this lesson we look into some standard applications of Closures.