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 trialGlenn Robinson
4,581 PointsThere appears to be a bug in my quiz as I'm being told to fix things that are already fixed.
I'm being asked to put a space between my first and last name.
let firstName = "Glenn";
let lastName = "Robinson";
let role = 'developer';let urole = role.toUpperCase();
let msg = firstName + '' + lastName + ':' + '' + urole;
console.log(msg);
1 Answer
Helari Sosi
6,168 PointsHeya Glenn,
You literally have to press space in between the quotation marks :).
""
- without the space between," "
- with the space between.
Also you can lose the quotation marks before the urole
and add a space after the colon, like this -
let msg = firstName + ' ' + lastName + ': ' + urole;
Hope that helps :). Btw template literals are much better, you should soon get to those.