JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

FAUSTO CAMACHO
FAUSTO CAMACHO
766 Points

What can I use to change the upper case method to a variable

app.js
let firstName = 'Fausto';
let lastName = 'Camacho';
let role = 'developer';
let msg = firstName  + ' ' + lastName + ': ' + role; 

1 Answer

Peter Vann
MOD
Peter Vann
Treehouse Moderator 35,350 Points

Hi Fausto!

You don't need to.

Just use role.toUpperCase() in that part of your challenge code.

I hope that helps.

Stay safe and happy coding!