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 trialSabrina Hoeke
16,107 PointsHelp 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
KRIS NIKOLAISEN
54,972 Pointslocation is reserved word.
Sabrina Hoeke
16,107 PointsSabrina Hoeke
16,107 PointsOMG Thank You. So basic!