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

Finally, convert. Please help me to continue with my learnings. I has been trying everything suggested, but steel the s

same error .

app.js
let firstName= "Victor";
let lastName= "Hernandez";
let role = 'developer';
let msg= firstName + ' ' + lastName + ':' +role+ '.';
let role= role.toUpperCase ();

2 Answers

Hi Victor!

First off - don't feel too bad. For some reason, this challenge set has stumped several other students, as well.

The main point of these challenges is to just demonstrate that you understand the basics of how and why to use variables in Javascript.

This passes the first challenge:

let firstName= "Victor";
let lastName= "Hernandez";
let role = "developer";

This passes the second challenge:

let firstName= "Victor";
let lastName= "Hernandez";
let role = "developer";
let msg = firstName + " " + lastName + ": " + role;

And this passes the third challenge:

let firstName= "Victor";
let lastName= "Hernandez";
let role = "developer";
let msg = firstName + " " + lastName + ": " + role.toUpperCase();

BTW, there should not be a space between toUpperCase and ()

More info:

https://www.tutorialspoint.com/es6/es6_variables.htm

https://www.w3schools.com/js/js_es6.asp

I hope that helps.

Stay safe and happy coding!

Hi Peter, thank you for your message and help with this task. I appreciate a lot your words ; finally the code is working right. Have a wonderful day.