Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
this is tough help please help me
This is the 2nd thread for the same problem you're having and I think I understand your confusion.
In the first part of the challenge it says "at the beginning of the script on line 9, enter the code that will print "Begin program" to the console". However, on the 2nd task it says this..
You, like a good student, read the instructions and said "ok, I shall do that... you want it after document.write()? I'll put it after document.write()"
And so, that's what you did. You put
console.log(‘End program’) literally right after
The thing is, that's not how it works. Each individual command needs to be on its own line. That's just how it works.
document.write() is one command and
console.log() is another command.
When they say "at the end of the script after document.write()" they mean "at the end of the script, on the next line after document.write()". If they want you to put something on the same line in the future (like when you'll be learning concatenation and method calls) they'll use the proper terminology that lets you know it needs to be added to the same line or they'll literally instruct you to "on the same line, line #, add so and so code". But in the future, when they say "after" they most certainly mean "on the next line".
Hope that cleared things up for you!