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


I started solving the challenges at the end of the lesson for beginner. I got stuck in a question 3/4

I started solving the challenges at the end of the lesson for beginner. I got stuck in a question 3/4 Challenge Task 3 of 4 Next, write the code for an alert dialog with the message "I am Programming!".

my answer alert("I am programming!");

why do i still get notified that is not correct?

3 Answers

Rick Gleitz
Rick Gleitz
47,153 Points

Hi Chinonso,

It's a bit hard without seeing your code. I had to assume you were taking the Javascript Basics course. It's best to state these things up front and post your question from within the course itself.

It looks like you had the right answer as long as you didn't actually type 'my answer' before your alert. Also, you shouldn't have deleted your work from the two previous challenges if you did. I hope this helps you fix the issue; if not, post a response with your code and I'll have a look.

Thank you Rick. I already moved on with subsequent lectures but it wasn't clear to me why i was stuck then. The answer i provided was correct but for some reason there was a hitch. I appreciate your response. Thank you.

Hello Chinonso,
You are doing a great job and the code you provided looks fine and can pass but the question has small details that you haven't included so small that anyone can pass it!
The word programming has a capital P

console.log("Begin program");
alert("I am Programming!");
console.log("End program");
Rick Gleitz
Rick Gleitz
47,153 Points

I noticed that too, but the small p didn't keep it from passing when I tried it. It must be something else.

True, I have tested the above code with small P and it was passing which I agree with Rick Gleitz that there must be something else

Thank you very much Mr. Shem, i tried both upper and lower cases of the letter P and still got no luck in passing that stage but i know that the answer was right. may be the admin should look into that challenge stage to correct any irregularity that may be the problem. i appreciate your help. Thank you. I agree with you and Rick Gleitz that there must be something else. This is a programming and also needs the admin to look into it.

Rachel Johnson
Rachel Johnson
Treehouse Teacher

Hi Chinonso Umeanoikwa , thanks for posting your question! I've had a look at the challenge and it's definitely working for all variants of "I am programming!"

I've experimented a bit and found that the challenge will not let you pass Step 3 if you deleted the console.log() from Step 2. All code challenges should add to existing code in the box rather than deleting it. There is a box of text to the left of all the buttons that says: Important: In each task of this code challenge, the code you write should be added to the code from the previous task.

So, the correct answer for step 3 is this:

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

When you move onto Step 4, be sure you are not deleting existing code. Simply add on!