Typically, you have to recreate the constructor code in your inheriting object. By calling this method in you constructor, you will effectively call Slider's constructor. You can use this constructor to process additional parameters, just be sure to call the initialize method as shown. The second step sets up the inheritance. This is known as the prototype object.
Objects inherit all properties from their prototype object.
This method is passed one parameter which is the parent object or container to which the body needs to be added. This method is passed one parameter which is the parent object or container to which the thumb needs to be added. Below is the results of our work.