Link Search Menu Expand Document

Constructing Strings with Variables

Summary

  • The + operator can insert one or more variables into a string.

Final Code

// Only change code below this line
var myName = "First and last name";
var myStr = "My name is " + myName + "and I am well!"