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.
karan karanWeb Development Techdegree Student 4,578 Points
Why 1st command no working when my 2nd command have some typo
I typed the 2nd command as it have some typo but as it should at least run the first one, but it didn't, once I fixed the problem now both are working? what can be the reason as Guil explained the 1st command runs then the 2nd.
Secondly, In the previous video Guil said, that when we write document.write() everything gets replaced by the message but over here the <h1> Tag gets added to the current page why is that?
Jason Larson7,539 Points