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.

JavaScript JavaScript Basics Hello, JavaScript! Debug JavaScript in the Console

hakop taturyan
hakop taturyan
245 Points

after entering my code in the workspace, i preview in and open the console but my code does not appear, shows no errors

alert("Hello, world!"); console.log("Hello from the console."); alert("Thanks for visiting"); document.write("<h1>Welcome to my web page.<h/1>");

after i preview this code like the video tells me to, i open the console and it doesnt show up,  rightclick.js:25 allow right click processing http://port-80-yzo5sekhlj.treehouse-app.com/

that is what apears

Steven Parker
Steven Parker
217,627 Points

Either you deleted the workspace, or tried to share a direct URL to it (which is temporary and only exists while you are using it).

You can use the snapshot function in the workspace and provide the link to that, which will persist as long as you retain the workspace.

1 Answer

Steven Parker
Steven Parker
217,627 Points

Did you remember to save your work in the editor before you refreshed the browser?

hakop taturyan
hakop taturyan
245 Points

Yes, it worked thank you! still a beginner getting the hang of it