Programación de algoritmos intermedios - Crea una persona

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

You seem to be mixing how you use variables with how you use functions/methods.

You call functions/methods using parentheses (), e.g. this.getFirstName()

You assign values to variables using = you do not call them, someVar = 'someValue' not someVar(someValue)

firstName and lastName are not properties on the object, they are stand-alone variables lastName = 'someValue' not this.lastName = 'someValue'.