Question: Write a function called "addFullNameProperty".

Given an object that has a "firstName" property and a "lastName" property, "addFullNameProperty" returns a "fullName" property whose value is a string with the first name and last name separated by a space.

```
var person = {
  firstName: 'Jade',
  lastName: 'Smith'
};
addFullNameProperty(person);
console.log(person.fullName); // --> 'Jade Smith'

```

Starter Code:

```
function addFullNameProperty(obj) {
  // your code here
}

```

My code:

```
function addFullNameProperty(obj) {
  // your code here
  person.fullName = person.firstName + " " + person.lastName;
  return person.fullName;
}

var person = {
  firstName: 'Jade',
  lastName: 'Smith'
};
addFullNameProperty(person);
console.log(person.fullName); // --> 'Jade Smith'

```

I am getting a proper out as expected but while submitting work I am getting the below output.(might because some of the condition might not be satisfying)

![Here is an error](https://i.stack.imgur.com/EbJgr.png)

The entire text from the error message is "should\_create\_a\_fullName\_property\_with\_the\_firstName\_and\_lastName\_separated\_by\_a\_space"

Can someone please help me to find the condition?

Answer: 
`person` is not defined in the function.
should be:

```
function addFullNameProperty(obj) {
  // your code here
  obj.fullName = obj.firstName + " " + obj.lastName;
  return obj.fullName;
}

```
Update your function to use function parameter as follows -

```
function addFullNameProperty(obj) {
  // your code here
  obj.fullName = obj.firstName + " " + obj.lastName;
  return obj.fullName;
}

```