freeCodeCamp/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/appending-variables-to-strings/index.md
2018-10-16 21:32:40 +05:30

456 B

title
Appending Variables to Strings

Appending Variables to Strings

Make sure your spelling and spacing are correct. Appending strings (stored inside variables) can be done like so:

var adj = "happy!";
var sent = "Today, I woke up being ";
sent += adj; // The result is "Today, I woke up being happy!"