String Concatenation and Template Literals

Challenge 1:

Declare three variables, `firstName`, `age` and `hobby`. Assign them corresponding values.

Declare a variable `concatedString`. Using string concatenation with the addition operator, create the string below:

My name is {firstName}, I’m {age} years old and I like to {hobby} in my free time.

Log `concatedString` to the console.

Challenge 2:

Declare another variable `templateString`. Using template literals, create the same string as the previous example.

Log `templateString` to the console.


  1. Click the play button to watch the video lesson.
  2. Watch the lesson as many times as needed.
  3. Code along with the instructor using the integrated code editor in the center of your screen.
  4. You can use the Run button beneath the code editor to test your code.
  5. Output from the code that you have written will appear in the panel on the right side of your screen.

If you get stuck or need assistance, you can click the button below to connect with a tutor. 

For additional questions or technical support, email