Skip to content

Commit 4106e2e

Browse files
committed
Update getAuthorFullName function to include space
Add space between first and last name to match format as taught in "Strings - Concatenation" chapter, and for readability
1 parent cea99f8 commit 4106e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objects/properties.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var language = {
1111
},
1212
// Yes, objects can be nested!
1313
getAuthorFullName: function(){
14-
return this.author.firstName + this.author.lastName;
14+
return this.author.firstName + " " + this.author.lastName;
1515
}
1616
// Yes, functions can be values too!
1717
};

0 commit comments

Comments
 (0)