I've developed a template to modularize JavaScript code I write for client work. The example below is is a simple class with 1 attribute and 3 functions.
- StandardisedStandardized constructor to add or modify settings/ options
- Functions as variables used later to return only "public" functions, all else are private
- Using local "call" variable to easily replace functions in unit testing
Are there any improvements you can recommend or general directionsbest practices to look for in terms of improvement?