- This exercise consists of calculates the total that the company has to pay an employee, based on the hours and the times during which they worked.
- Open of project in visual studio code
- Click right and select open with live server
- In of navegator click right and select inspect element or ctrl+shit+I, select console and can you see the information for console.
- if click in the bottom Consultar employee information is added to the window.
- There are many file .js because is easier understand code to sections. In comparation of have a file with hundreds of lineas code
- The file app.js is the main of the aplication, without this file the application not runner.
- The folder Clases there are two file Empleado.js and Horario.js in both file the structure of code is OPP (Object oriented programming).
- There are other file .js the file funciones.js is used as file second main, in this file import class and variables, for your runner.
- In the file app.js to declare un array, that contained objects of type Empleado to handle the information.
- The file data.txt is located in this folder. This file is used with information of each the employee.