employee salary calculate in node
calculate employees salary of program in node
Here is what the above code is Doing:
1. We are creating a class Employee.
2. We are creating a constructor which takes the name and salary of the employee as parameters.
3. We are creating a method called display which prints the name and salary of the employee.
4. We are creating an object of the class Employee.
5. We are calling the method display on the object.