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 trialTyler Proctor
11,458 PointsThe compiler keeps telling me that I can't assign a new value to a "let" even though I have changed them to "var"
I know that this code is not completed yet and there are still things I need to adjust in the init methods at the bottom, but one persistent issue is with the values "wheels" and "doors" in the Vehicle class. In the original code they start as "let" and even though i have changed them to "var" the compiler still keeps telling me that it cannot assign a new value to a "let." Am I missing something?
2 Answers
Justin Reed
Full Stack JavaScript Techdegree Student 33,918 PointsTry saving, closing and restarting. Every once in a while something seems to jam in the system and this releases it.
Hope this helps, would love an upvote if you could, almost done with the whole course, just need these darn community points.
Kind regards,
Justin
Tyler Proctor
11,458 PointsI appreciate both of your responses. I did manage to solve this after looking at some similar examples.
Martin Wildfeuer
Courses Plus Student 11,071 PointsMartin Wildfeuer
Courses Plus Student 11,071 PointsHey Tyler, please attach your code to the question so we can have a closer look at it. Thanks!