In previous lessons, we learned how to pass numbers and text to console.log. In this lesson, we will learn how to store numbers and text in variables.
A variable is like a labeled box where you can store a number or some text. You can later use the label to recall the stored value.
Run the code sample below to see some variables at work.
Output (Console)