JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

Craig Kempster
Craig Kempster
1,716 Points

Bummer: Make sure you're concatenating `: ` to `lastName` and `role`.

Answers in the forum did not work

let role ='developer'; let role_upper = role.toUpperCase(); works in VS

app.js
let firstName = 'First Name';
let lastName = 'Last Name';
let role = 'developer';

let msg = ( firstName ) + (' ') + ( lastName + ':') + ( role.toUpperCase() );

1 Answer

Craig Kempster
Craig Kempster
1,716 Points

let role ='developer'; let role_upper = role.toUpperCase(); let msg = ( firstName ) + (' ') + ( lastName + ':') + ( role_upper ); Works in Visual Studio Code but fails in TreeHouse Window