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!
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
Anna Bazileeva717 Points
challenge task 2
The error message: Bummer: Make sure you print 'Begin program' in the console
What wrong with my code?
alert("Warning! This message will self-destruct in"); alert("3"); alert("2"); alert("1"); document.querySelector('h1').textContent = '🔥BOOM!🔥'; console.log("Message destroyed!"); console.log("Begin program");
Steven Parker227,126 Points
Your program is printing many things not asked for by the instructions, and it also requires user interaction (several times) before it accomplishes the objective. Remove all the extra alerting and logging to pass task 2.
For best results with the challenges, always do only what the instructions ask for to avoid confusing the evaluator.
Experiment as you like in the workspace exercises.