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

JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Build a Quiz Challenge, Part 1

Help with Quiz Challenge Part I

I'm attempting the quiz challenge and have been running into issues getting my program to correctly identify the answers I provide.

Any advice on why I keep getting 'Sorry, you are incorrect' even when I provide the correct answer?

Link to workspace: https://w.trhou.se/fwtuxzpp9x

PS: I know my code is not optimized (I can make it much simpler by incorporating functions). At the moment, I'm trying to nail down the core functions of my code before refactoring it with functions.

1 Answer

Hi Fransesco, 'toLowerCase' is a method and whenever you call it on a variable or string you need to call it with opening and closing parenthesis. In your code you didn't call the method with the parenthesis.

Question_1.toLowerCase();

Thanks!