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

William Domenech
William Domenech
7,259 Points

Java Uppercase();

i have no idea what i am doing wrong can someone explain been stuck on this for a min

app.js
let firstName = "Will";
let lastName= "Dom";
let role = 'developer';
let msg = firstName + ' ' + lastName + ':' + role.toUppercase() ".";

2 Answers

Bella Bradbury
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Bella Bradbury
Front End Web Development Techdegree Graduate 32,790 Points

Hello William!

There are a couple of things that are causing you to not pass this task. The first is that you need to capitalize the 'c' in .toUpperCase().


The other issues stem from what your finished string would be vs what it needs to be. This is actually a mistake that a lot of people make and it's completely understandable why! Yours would currently print as:

Will Dom:DEVELOPER.

Instead, the finished string should actually be:

Will Dom: DEVELOPER

Notice that there should be a space after the colon and there should not be any punctuation at the end!


You're almost there. Keep up the good work!