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

Chantal St Louis
Chantal St Louis
5,524 Points

I don't understand how this answer is wrong? It's correct on the browser console

... and as I far as I can see I'm answering the given question correctly. Here's my code

app.js
let firstName = 'Stacey';
let lastName = 'Grey';
let role = 'developer';

const msg = firstName + ' ' + lastName + ':' + role.toUpperCase() + '.'
Bolivar Arguello
seal-mask
.a{fill-rule:evenodd;}techdegree
Bolivar Arguello
Front End Web Development Techdegree Student 9,429 Points

let msg = firstName + " " + lastName + ": " + role.toUpperCase(); shall display content inside the double quotation marks only, and there is no puntation after developer. note: Always check for semicolon at the end.

2 Answers

Steven Parker
Steven Parker
231,269 Points

Close! But you need a space after the colon, and no punctuation at the end.

Chantal St Louis
Chantal St Louis
5,524 Points

Thank you. I missed the fact that the full stop was outside of the quotations in the question. Thanks again