I want this to print to my console.log, but I keep getting an error that says "cannot set properties of undefined (setting 'print')".
What am I missing?
function Employees (name, jobTitle, salary, status){
this.name = name;
this.jobTitle = jobTitle;
this.salary = salary;
this.status = status;
}
// Employees.prototype.status = function(){
// console.log(this.status)
// }
// printEmployeeForm()
Employees.prototype.print = function printEmployeeForm(){
console.log(this.name, this.jobTitle, this.salary, this.status)
return printEmployeeForm
}