Challenge Constructing Strings With Variables - thelastmile/FreeCodeCamp GitHub Wiki

Challenge Constructing Strings with Variables

Sometimes you will need to build a string, Mad Libs style. By using the concatenation operator +, you can insert one or more variables into a string you're building.

Example

var ourName = "Free Code Camp";
var ourStr = "Hello, our name is " + ourName + ", how are you?";