Revealing Module Pattern

Using closures in javascript, we can create public and private methods.


Only the methods and variables that are specifically returned are available publicly and we can provide references to privately declared methods and variables inside the public methods.

Layout for RMP:

Leave a Reply

Your email address will not be published. Required fields are marked *