Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Basics!
You have completed JavaScript Basics!
Preview
It's common to put your JavaScript code into a file that's separate from your HTML file. In this video, you'll learn how and where to add JavaScript to a web page.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
When writing larger,
more complex applications,
0:00
it's common to put your JavaScript
code into a file that's separate
0:00
from your HTML file like you
would with CSS, for example.
0:03
So now, I'll teach you how and where
to link a JavaScript file to HTML file.
0:08
Earlier, you learn that you can use
JavaScript in lots of different places.
0:13
For instance, on web servers and
desktop applications.
0:17
In this course, we'll concentrate on
how JavaScript works in a browser.
0:20
The browser is the most common place
you'll encounter JavaScript and
0:24
the easiest place to try
out JavaScript programming.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up