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

Question Won't accept Correct Answer!?

question requires use of alert message which am typing in correctly as alert("I am Programming");

but it's marked as incorrect. Can't Progress any further.

2 Answers

Simon Coates
Simon Coates
8,177 Points

Your question isn't currently linked to a treehouse challenge. If you post a URL, then people can test out the code. What you wrote works fine in the browser. Without knowing the challenge, I can only suggest making sure that the alert message precisely matches what the challenge requests. Occasionally, people change the case or omit punctuation (e.g. trailing full stops or exclamation marks).

If you're doing https://teamtreehouse.com/library/javascript-basics/hello-javascript/write-javascript-statements , then it might accept

console.log("Begin program");
alert("I am Programming!");

for challenge 3.

Thanks for the response Simon. Actually forgot to use an exclammation mark within the sentence in the alert message. will also certainly add a link to my question next time. Thanks again.

Simon Coates
Simon Coates
8,177 Points

You shouldn't need a link. It's possible (somehow) to post a question so that it's automatically attached to the challenge, quiz or video that caused it (and treehouse generates a link). If it doesn't work, then a URL is a decent fallback to let people work out what the question refers to.

thanks. next time I have an issue I will try to link it to the challenge.