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 trialTaylor Fugere
2,196 PointsJavascript Issue with MASH Game
Hello!
Everything with the HTML and CSS was looking good--I was able to change my questions and fonts etc to my liking--but the MASH game just doesn't work--I press the button and it doesn't pop up. It keeps my answers in the text boxes, it just doesn't return anything.
Was I not supposed to change my values in the Javascript document to match the terms in my HTML document--that's the only thing I changed in that document.
Here is a screenshot of my code: https://w.trhou.se/4q9inde8om
Thanks!
2 Answers
Jennifer Nordell
Treehouse TeacherInteresting. I forked your workspace and took a look. But when I do that, and enter all the information and click the "Tell My Fortune", it works! So let's check some basics. It may sound silly, but make sure you've saved your file. After clicking the preview, try refreshing the browser. If none of this works, try clearing your browser cache and see if you can get it working. Hope this helps!
David Kanwisher
9,751 PointsWorks for me
Taylor Fugere
2,196 PointsTaylor Fugere
2,196 PointsThanks Jennifer! I tried it in an incognito window and on different devices and it works--so it definitely was a cache issue--I feel so silly :)
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherTaylor Fugere absolutely no reason to feel silly! It's natural to jump to the conclusion that something's wrong with the code. We've all done it