Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /