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 trialHenry Peavler
Full Stack JavaScript Techdegree Student 516 PointsCannot read property '1' of null
not really sure what i am doing wrong here
let firstName = "Trey";
let lastName = "Peavler";
const role = "developer";
let role = let msg = firstName + ' ' + lastName + ' ' role;
1 Answer
Travis Alstrand
Treehouse TeacherHey Henry Peavler !
I'm guessing by trying to get through this myself that you're on step 2 of this 3 step challenge.
The issue is on that last line you're trying to reset the value of a const
(role
) and a missing colon :
.
We need to remove the let role =
from your last line and just define a new variable role
with your string concatenation. You may hit an error after that regarding a colon. You'll want to add this after the lastName
and before the space between that and the role
.
let firstName = "Trey";
let lastName = "Peavler";
const role = "developer";
const msg = firstName + ' ' + lastName + ': ' + role;