Quiero que esto se imprima en mi console.log, pero sigo recibiendo un error que dice "no se pueden establecer propiedades de indefinido (configurando 'imprimir')".
¿Qué me estoy perdiendo?
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 }