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 Solution

fredyrosales
fredyrosales
10,572 Points

Can someone please help me improve my code.

What i'm having trouble with is when i respond with my questions they're wrong when you don't Capitalize the first letter. Can someone edit my code to where i can add the .toLowerCase. Thank you very much! https://w.trhou.se/8sbf2swvk3

1 Answer

Shezan Kazi
Shezan Kazi
10,807 Points

Hi Fredy,

usually for a quiz you would want to prompt the user for an answer, e.g.

var answer = prompt("Give me your answer: ").toLowerCase()

I don't see this prompt in your code, so perhaps you should add it. You could add it to line 8