Tell us what’s happening:
Your code so far
var Person = function(firstAndLast) {
// Complete the method below and implement the others similarly
this.getFullName = function() {
return firstAndLast.split(/\W/);
};
this.getFirstName = function(){
return "Ross"
}
return firstAndLast;
};
var bob = new Person('Bob Ross');
bob.getFullName();
bob.getFirstName();
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
.
Challenge: Make a Person
Link to the challenge: