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

task 2

what am I doing incorrect ??

app.js
let firstName="angela";
let lastName="gonzalez"
let role = 'developer';
let msg = fistName + " " lastName + "; " + role;

2 Answers

Steven Parker
Steven Parker
231,261 Points

I see three issues:

  • the spelling of "fistName" (with no "r") instead of "firstName"
  • a missing concatenation operator between the literal space and lastName
  • the use of a semicolon instead of a colon in the constructed string

Thank you