JavaScript JavaScript Basics Hello, JavaScript! Add JavaScript to HTML

John Fulstone
John Fulstone
Courses Plus Student 762 Points

How do I get index html with my JavaScript file into Java Basics?

I cant get my html script from my workspace to my JavaScript Basics tab. I'm on this course for boneheads. Any ideas?

Heidi Fryzell
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 21,829 Points

Hi John,

The link to your workspace isn't working.

The way that I know how to link to a workspace is while you are in the workspace, click on the Camera Icon in the top right Corner of the page. Then click on take a snapshot. And it will generate a link that looks like this: that you can paste into your post.

Once you fix the link I'm sure someone will be happy to take a look at you code.

Happy Coding!

1 Answer

This is how i got it to work.

So I posted an answer I think will help you. It is under the last section with the linking of JS to HTML. Basically, when i was getting this error, something was wrong with the workspace that was created for me. I had to create a new workspace that was identical to get this all to work.

here is the link to the question with my answer. Copy and paste it. Hope it can help you.