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 trialmarc m
5,170 PointsString 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.
let firstName = "Carlos";
let lastName = "Salgado";
let role = "developer";
let msg = firstName + " " + lastName: + " " + role".";
3 Answers
Samuel Llibre-Pillco
15,467 Pointslet 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 ;)
Victor Mercier
14,667 PointsHi, 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!
marc m
5,170 PointsThanks so much was losing my mind, missed that 2nd + on + role +