Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics Making Decisions in Your Code with Conditional Statements Program Multiple Outcomes

The 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
MOD
Cameron Childres
Treehouse Moderator 11,715 Points

Hi 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).