Advertisement
Dennisaa

JasEmp03

Sep 5th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var Employee = function () {
  2.     'use strict';
  3.     var Name, Salary, DateOfBirth;
  4. };
  5.  
  6. Employee.prototype.Add = function (name, salary) {
  7.     'use strict';
  8.     this.Name = name;
  9.     this.Salary = salary;
  10. };
  11.  
  12. Employee.prototype.GetSalary = function () {
  13.     'use strict';
  14.     return this.Salary;
  15. };
  16.  
  17. Employee.prototype.GetName = function () {
  18.     'use strict';
  19.     return this.Name;
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement