Rewrite all the code in the style taught in class to create the employee objects using a constructor function, methods instead of ordinary functions, and inheritance to avoid multiple copies of methods. What is the best way to make donateLeave a method?

javascript programming
exercise: methods 08