Hello, I want to “put” an object (var person) into the function through the argument (thus giving me “John Smith”), but it says there’s a syntax error. What could it be?
function addFullNameProperty(obj) {
var fullName = obj.firstName + ' ' + obj.lastName
return fullName
}
addFullNameProperty(var person = {firstName: "John", lastName: 'Smith';})