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 Practice Basic Variables, Input & Output in JavaScript!
You have completed Practice Basic Variables, Input & Output in JavaScript!
Preview
Follow along to see how to program the solution to this practice session.
Review this practice workshop
We're looking for feedback on this new type of practice workshop. When you're finished, could you please fill out this short form? :)
Course
Related Videos
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
compare it to what you wrote and
then try to recreate it yourself.
0:00
Now step one is to link
the JavaScript file to the webpage,
0:00
that's the index.html file.
0:03
The script tag is how you do it.
0:06
Just add a source attribute
followed by the path to the file.
0:08
Because the JavaScript file is in
the same folder as the index.html file,
0:13
the path is just practice.js.
0:18
For step two, I created a new
variable using the var keyword.
0:21
The name of the variable
describes what I'm asking for
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