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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Patrick Thomas](https://secure.gravatar.com/avatar/1e50b484ba5da1ee6f49578ee037ea8c?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Patrick Thomas
Full Stack JavaScript Techdegree Student 3,529 PointsWhat is property one? Is that the first line of code that I am missing?
So, I am trying to figure out whether I the error message is on the first line or another line. It's saying can not read property 1 of null? Which code is it?
let firstName;
let lastName;
let role = 'developer';
let developer += "Patrick + Thomas;
1 Answer
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,853 PointsDespite the peculiar error message, the main issue is unbalanced quotes (there's only one) on the last line. But you have a few additional issues:
- your names should be assigned to the variables as they are created on lines 1 and 2
- all later references should be made using the variables instead of literal strings
- the instructions ask for the new variable to be named msg instead of developer
- the "+=" operator can't be used when first creating a variable (but you won't need it here anyway)
Patrick Thomas
Full Stack JavaScript Techdegree Student 3,529 PointsPatrick Thomas
Full Stack JavaScript Techdegree Student 3,529 PointsBelow role, create a new variable named msg that combines the firstName, lastName and role variables to create a string like "Carlos Salgado: developer".
Bummer: Make sure you're adding one space (' ') between
firstName
andlastName
.Now I'm getting this message, I have no idea what to do.
Steven Parker
230,853 PointsSteven Parker
230,853 PointsPlease show the code with all your recent changes.