JavaScript/OOP-classes/Exercises

Topic: OOP - 2

1. Create a class 'Car' with (minimum) two properties.

2. Create a class 'Truck' that is a sub-class of the above 'Car' class. It has an additional property 'maxLoad'.