Tell us what’s happening:
Describe tu problema en detalle aquí.
Does anyone know why my code is not working?
Your code so far
const Person = function(first, last) {
let firstName = first
let lastName = last
this.getFirstName = () => firstName;
this.getLastName = () => lastName;
this.getFullName = () => this.getFirstName + " " + this.getLastName;
this.setFirstName = (first) => firstName = first;
this.setLastName = (last) => lastName = last;
this.setFullName = function(first, last) {
this.firstName(first);
this.lastName(last);
return this.getFullName
};
};
Your browser information:
El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Challenge Information:
Programación de algoritmos intermedios - Crea una persona