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

String concatenation javascript!

working through JS basics and watched the videos leading up to this and ive tried submitting this answer several times also tried submitting without the period at the end too.

app.js
let firstName = "Carlos";
let lastName = "Salgado";
let role = "developer";
let msg = firstName + " " + lastName: + " " + role".";

3 Answers

Samuel Llibre-Pillco
Samuel Llibre-Pillco
15,467 Points
let firstName = "Carlos";
let lastName = "Salgado";
let role = "developer";
let msg = firstName + " " + lastName + ":" + role + "."; 

Thats the answer your problem was with the : and spaces check it out ;)

Hi, just do that thing: let firstName = "Victor"; let lastName = "Mercier";

let role = 'developer'; let msg = firstName+" "+lastName+": "+role Please mark as best answer if it resolved your issue!

Thanks so much was losing my mind, missed that 2nd + on + role +