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.
Ayush Bahuguna2,092 Points
alert and document.write functions are not working.
I have saved the file and I have checked with the code that has been typed by the instructor, but still, document.write() is not printing on page.
Are you sure you are putting quote marks "" around the strings? Eg.
Have you linked the js. file to the index.html file? It's tough to help you without seeing the code.
I think you should show us the code ;)
Ned Redmond5,615 Points
I'm having the same issue.
var visitorName = prompt('What is your NAME?');
var message = "Hello " + visitorName + "! Welcome to Treehouse.";
message += " Eat a butt, dirtbag.";
I'm just not seeing anything populate to the page.