What you will learn in this lesson
This is the first lesson where JavaScript starts to look a little more like code. That can feel intimidating at first, but the idea behind it is simple.
Variables help JavaScript remember information. If the code needs a name, a number, or a short message later, it can store that information first and use it again when needed.
Your lesson goals are simple:
- understand what a variable is in plain English
- understand what a value is in plain English
- read tiny examples without rushing
- see why variables make code easier to reuse and change
- leave this lesson feeling calmer about beginner JavaScript syntax
A variable is a named place where JavaScript stores a value.