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 Basics (Retired) Working With Numbers The Mad Libs Challenge Revisited

Phong Somlith
Phong Somlith
5,675 Points

My code does not come up with a prompt window...

I looked through my code multiple times and it seems to looks ok, however, it's not activating the prompt window. Can someone please help verify if my code is correct? Below is the link:

https://w.trhou.se/kl33fgbrm4

Thanks in advance!

Note: I'm using Chrome on a Mac.

2 Answers

Erik Nuber
Erik Nuber
20,629 Points

Line 7 of your javaScript file you call your variable questions left instead of questionsLeft. So the file isn't actually being completed because of an error. If you fix that, it should work.

Phong Somlith
Phong Somlith
5,675 Points

Good eye Erik, Thanks! After reviewing my code multiple times, couldn't believe I missed that.

Erik Nuber
Erik Nuber
20,629 Points

Easy to miss and not a big deal. I copy and pasted it into the console and it told me there was an error on Line 7 so made it easy to spot.

Phong Somlith
Phong Somlith
5,675 Points

Awesome. Good to know about using the console. Will definitely keep that in mind. Thanks again!