Chapter projects
Employee tracking app
Create a class to track the employees of a company:
- Use first names, last names, and the number of years worked as values in the constructor.
- Create two or more people with values for their first names, last names, and the number of years they've worked at the company. Add the people into an array.
- Set up a prototype to return the details of the person's first and last names and how long they've worked at the company.
- Iterate the contents of the array to output the results into the console, adding some text to make the output a full sentence.
Menu items price calculator
Create a class which will allow you to work out the combined price of a number of items, and interact with it to work out the total cost of different orders.
- Create a class that contains the prices of two menu items as private field declarations.
- Use the constructor in the class to get the argument values...