Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

let firstName = "Eric"; let lastName = "Shanks"; let role = "developer"; const msg = firstName + " " + lastName + ": " +

Create a string like "Carlos Saldago: developer."

app.js
let firstName = "Eric";
let lastName = "Shanks";
let role = "developer";
const msg = firstName + " " + lastName + ": " + role ".";

Are you asking a question or are you just posting your result?

Asking a question. I am getting a Bummer, can not read 1 as null.

2 Answers

Honestly, I'm uncertain how or why it worked. But I just passed this step using:

let firstName = 'Caleb'; let lastName = 'Pooler'; let role = 'developer'; let msg = firstName + " " + lastName + ": " + ":" + role + ".";

it was just a missing + after role and before "."

Thank you. That helps.