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

Cannot complete challenge

I have tried tot complete this challenge and it looks exactly like what Treehouse has posted on the web. What is wrong

app.js
let firstName = "Kat";
let lastName = "Gibbons";
let role = 'developer';
var msg = firstName + '' + lastName + ":" + role;

2 Answers

Steven Parker
Steven Parker
231,269 Points

The spacing might be hard to see in the video. The first literal string should not be empty, it should have a space in it. And the other one should have both a colon and a space in it.

Jaime Cazares
Jaime Cazares
Courses Plus Student 2,888 Points

you will need to add a + after role, and then period in single quotes.

Steven Parker
Steven Parker
231,269 Points

Jaime, have you taken this course? You specifically do not want to add punctuation after the role.