freeCodeCamp Challenge Guide: Appending Variables to Strings

freeCodeCamp Challenge Guide: Appending Variables to Strings
0

#1

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;

#5

var someAdjective = “difficult but rewarding!”;
var myStr = "Learning to code is ";
myStr += someAdjective;


#6