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

I have been trying to pass this challenge for the last half an hour and it keeps giving me "bummer" errors!

("Capturing visitor input and writing it to the page"; challenge task 3) There is nothing wrong with it!!!!:

var answer prompt("What day is it?"); answer = prompt("What day is it?"); document.write(answer);

Apparently I can't show how my answer looks because it shows it all on one line.

errors I get: "bummer, it looks like you placed the document.write() function in the wrong place" "oops, it looks like task 1 is no longer passing"

You need to link this question with the challenge you are having trouble with. That way we can see what is going on better.

1 Answer

I solved it by moving the "document.write(answer)" one line up. Still doesn't make sense.

thats good, but this is incorrect:

var answer prompt("What day is it?");

//it needs to have an operator. 

var answer = prompt("What day is it?");

what is it that doesn't make sense?