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 trialChristian Steffensen
Courses Plus Student 252 PointsBummer: Make sure you put `alert() `after `console.log()`. JavaScript Basics - Challenge 3 of 4.
https://teamtreehouse.com/library/javascript-basics/hello-javascript/write-javascript-statements It seems so easy and understandable, just add `alert("i am programming"); And that would be it, but it's not. Hope someone can help me with this challenge. It may be because I'm new to coding and don't see the fail that I have made.
Christian Steffensen
Courses Plus Student 252 PointsDon't know how to add a screenshot here.
My code is
``console.log("Begin program");
console.log("This message will print to the console!");
alert("I am Programming");ยดยดยด
And it's with the
alert("I am Programming");ยด I have the problem. It will either state that I didn't but alert() after console.log() or that I didn't but the I am Programming into the alert string.
1 Answer
Steven Parker
231,275 PointsThe instructions ask for "an alert dialog with the message "I am Programming!"", but this code outputs "I am Programming" (without the exclamation point) instead.
Also, for best results with the challenges, don't do anything extra that the instructions don't ask for.
And when posting code to the forum, use Markdown formatting to preserve the appearance, or share the entire workspace by making a snapshot and posting the link to it.
Christian Steffensen
Courses Plus Student 252 PointsThank you very much for your help. Really appreciate it- Thank you.
Steven Parker
231,275 PointsSteven Parker
231,275 PointsPlease show your complete code so we can help spot the issue.