Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 755 Bytes

File metadata and controls

18 lines (13 loc) · 755 Bytes

JS_modulePattern_ClassExample_private_public ⛰️

JavaScript | The Module-Pattern | Two example-Classes with private and public functions.
Well commented for better understanding.
No web-server needed for the example-file (JS_modulePattern_ClassExample_private_public.html).

For bigger applications, the Module-Pattern should be integrated in the MVC-Pattern.
You could find here a template (my favourite off all times):
https://github.com/Reinerth/Application-Template-MVC-best-Practice



This is what it looks like (screenshot of the code):

JS_modulePattern_ClassExample_private_public