Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 296 Bytes

Appending Variables to Strings

Just as we can build a string over multiple lines out of string literals, we can also append variables to a string using the plus equals += operator.

Example

var anAdjective = "awesome!";
var ourStr = "Free Code Camp is ";
ourStr += anAdjective;
Something went wrong with that request. Please try again.