JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

Yushae DeSilva-Andrade
Yushae DeSilva-Andrade
2,103 Points

Concatenation

is there something I am doing wrong

app.js
let firstName= "Yushae";
let lastName="DeSilva-Andrade";
let role = 'developer';
const msg= firstName + " "+ lastName + ": " + role + ".";

1 Answer

rabin
seal-mask
.a{fill-rule:evenodd;}techdegree
rabin
Front End Web Development Techdegree Student 14,513 Points

Hey Yushae DeSilva-Andrade,

Your code is perfect, just remove the + assignment operator and period from msg variable.

Here's the final code:

let firstName = "Yushae";
let lastName = "DeSilva-Andrade";
let role = "developer";
const msg = firstName + " "+ lastName + ": " + role;

Hope this helps!