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 trialLeland Holmes
Full Stack JavaScript Techdegree Student 884 PointsI'm not sure how to change my input to pass this task?
I recieve the same respoonse and I am not sure what I'm missing. Bummer, make sure to place a space (" ") in between firstName and lastName.
I can't find the mistake in my code.
let firstName = "Carlos";
let lastName = "Salgado";
let role = "developer";
let msg = "firstName" + " " + "lastName" + "role";
1 Answer
Thomas Fildes
22,687 PointsHi Leland,
You will need to remove the quotation marks from your variable names: firstName, lastName & role.
You will also need to include an extra string to concatenate (": ")which allows the colon and space for the output for the msg variable to say: firstName lastName: role.
Hope this helps, happy coding!
Tom
michael apprich
9,989 Pointsmichael apprich
9,989 PointsYou don't put the variables inside quoutes. Quotes are for strings. You would use just the variable name. So instead of "firstName" you would just put firstName. I think that's the error even though the error message says the issue is with the string that includes a space. Also, the challenge wants you to include a : with a space after the lastName. So be sure you add a string for that.
Should look something like this: