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

can anyone please help on challenge task 2

having problems with this one task 2 javascript basics

app.js
let firstName = ("Malcolm");
let lastName = ("Mowlam");
let role = 'developer';
const name1 = "Carlos";
const name2 = "Salgado";
const name3 = "developer";
let msg = firstName + '. '+ lastName + '.' + role;
console.log (msg)

2 Answers

Steven Parker
Steven Parker
231,248 Points

Here's a few hints:

  • you don't need to create any new variables (all the "name..." lines can be removed)
  • be careful of what you put between the words, one is just a space, the other needs a colon/space
  • you won't need to "log" anything
  • strings do not need to be enclosed in parentheses

thanks steven