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 (Retired) Storing and Tracking Information with Variables The Variable Challenge Solution

Sabrina Hoeke
Sabrina Hoeke
14,015 Points

Help with js. I was able to write code for prompts and alert messages but then it keeps going to a 404 error message.

var yourName = prompt("What is your first name?"); alert("Hi " + yourName + ", I have a few more questions and then I'll tell you a story"); var royalTitle = prompt("Name a royal title, ex. Queen, Duke, Lady, Prince"); var favFood = prompt("Name of your favorite food"); var gameName = prompt("Name of a game you like to play"); var location = prompt("Name a place you like to visit"); alert("Hang in there " + yourName + ". Just a couple more!"); var monster = prompt("Name a creature that haunts your dreams"); var largeThing = prompt("list a noun that is something large"); alert("Whew! You made it! No more questions. Here's the story ...");

1 Answer

location is reserved word.

Sabrina Hoeke
Sabrina Hoeke
14,015 Points

OMG Thank You. So basic!