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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript JavaScript Basics Hello, JavaScript! Add JavaScript to HTML

How do I access the page that says "Hello, JavaScript!"?

I'm trying to run the alert, but I don't know how to get on the JavaScript page to do so. Please help me

2 Answers

I found a solution. I was referring to the preview page in the Treehouse workspace. Now, I know how to access it. Thank you!

There is not a javascript page, but you can run javascript in the console (CTRL + SHIFT + I on windows / chrome)

you can also link your javascript file from your html, that way you can run javascript from your webpage, but make sure to call the functions too.

https://www.w3schools.com/tags/att_script_src.asp

Thank you for responding. I know how to access the console to my computer for JavaScript. However, I was referring specifically to the blue page that Guil Hernandez was using in his "Add JavaScript to HTML" video to run the script and alert from his workspace.

nice, good job :)