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
Learn how to use variables to store and track information, as well as use and manipulate information.
Resources
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
like your name in quotes, or the number
100, for example, isn't all that useful.
0:00
Most of the time,
0:03
a JavaScript program needs to work
with information that changes.
0:04
For instance, a social media site
displays custom information to each user.
0:08
A game shows a player's current score, and
0:12
an online shopping cart includes
all items selected by the user.
0:14
A program needs a way of keeping
track of all this information.
0:18
Information that changes or
0:22
varies each time a program runs is often
stored in what's called a variable.
0:24
Variables are one of the most
important concepts in programming.
0:28
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