Make a Person issues

Tell us what’s happening:
Hey I have tried several things and it is still not wgoing through, any help on this?
Your code so far

var Person = function(firstAndLast) {
 // Only change code below this line
 // Complete the method below and implement the others similarly
 let  fullName = firstAndLast;
// console.log(name.split(" ")[1],"here")
 let firstName = fullName.split(" ")[0]
 let lastName = fullName.split(" ")[1]
 //[0].split(" ");
 this.getFirstName= function(){
   return firstName;

 this.setFirstName = function(firstName){
return firstName = firstName

 this.getLastName = function (){
   return lastName 
 this.setLastName = function(lastName){
return lastName = lastName

 this.getFullName = function() {
   return fullName ;

this.setFullName = function(fullName){
 return fullName = fullName;


var bob = new Person("Bob Ross");
console.log(bob.setFirstName("Haskell "),"first")
console.log(bob.setFullName("Haskell Ross"),"fullname")
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0.

Challenge: Make a Person

Link to the challenge:

What do the failing tests say? What else have you tried?

There is one thing that jumps out at me:

What is this method supposed to return?

1 Like

I am setting firstName = firstName oor assingning firstName to the name provid it by a user.