No-Library (pure JS), HTML, CSS, JavaScript
This pattern is useful when your function has some initial preparatory work to do and it needs to do it only once.
jQuery 1.9.1, HTML, CSS, JavaScript
if we will not use constructor then we can't access all the properties and method of the method. or we can not inherent the method properly
Way to create an object and then add more property.
Can access variables of outer function and return function with its accessed outer variable value
jQuery 1.11.0, HTML, CSS, JavaScript