Custom Class Script
Script to create a custom class with custom properties and methods
This simple example shows how to create a custom javascript class and use it via a constructor. In this example, an array is created containing the employee information for a fictional company. The array is very simple but each entry is an example of a custom ’employee’ object class which stores each employees’ information. The employee class also contains an example method which is called by the script. |