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 trialWilbert Brinson
2,181 PointsIm having trouble with this question what am I doing wrong
let firstName = ("wil");
let lastName = ("brein");
let role = ('developer');
msg = "firstName " + "lastName" + ": " + "role";
console.log(msg)
4 Answers
Thomas Spurlock
1,671 PointsDeclare msg with "const msg =" or "let msg =". That what I think is missing.
Wilbert Brinson
2,181 PointsFinally, convert the string stored in role to uppercase letters. The final msg string should look similar to this: "Carlos Salgado: DEVELOPER".
Thomas Spurlock
1,671 Pointslet firstName = ("Wil"); let lastName = ("Brein"); let role = ('developer'); let shout = role.toUpperCase(); let msg = firstName + " " + lastName + ": " + shout;
console.log(msg);
Thomas Spurlock
1,671 PointsEach "let" is the start of a new line