function empObject(name, age, department) {
this.name = name;
this.age = age;
this.department = department;
this.showOne = showOne;
}
The code above Defines a constructor function for a custom object named empObject. It contains three properties: name, age, and department. It contains one method: showOne