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

Im having trouble with this question what am I doing wrong

app.js
let firstName = ("wil");
let lastName = ("brein");
let role = ('developer');
msg = "firstName " + "lastName" + ": " + "role";

console.log(msg)

4 Answers

Declare msg with "const msg =" or "let msg =". That what I think is missing.

Finally, convert the string stored in role to uppercase letters. The final msg string should look similar to this: "Carlos Salgado: DEVELOPER".

let firstName = ("Wil"); let lastName = ("Brein"); let role = ('developer'); let shout = role.toUpperCase(); let msg = firstName + " " + lastName + ": " + shout;

console.log(msg);

Each "let" is the start of a new line