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 trialDaniel Statsenko
Full Stack JavaScript Techdegree Student 4,235 PointsThe very last else{} in the program yields a "Uncaught TypeError: Assignment to constant variable."?
When the "const" doesn't have a value, the very last else{} in the program yields a "Uncaught ReferenceError: consloe is not defined at else-if.js:10" is this due to the most recent version of JavaScript? Because the program I wrote is identical to the one in the video.
1 Answer
Cameron Childres
11,820 PointsHi Daniel,
I noticed your error reads "consloe is not defined". Check your spelling of "console" on that line and see if it helps.
If you're still having issues after checking that be sure to share your code with us, either by pasting it in with formatting from the markdown cheatsheet linked below or by linking us to a snapshot of your workspace (the camera icon in the top right).