
Join the Conversation!
Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.
Learning Objective: Understand what variables are, their purpose, and how to create them.
Welcome to the first section of the course! Over the next few lessons, we’ll explore variables and data types, two foundational concepts in programming.
Variables are like that hold reusable data.
Their sole purpose is to label and store data in memory.
This data can then be used through the entirety of your program.
Think of variables in JavaScript as containers which hold reusable data. In other words, they are units of storage, like some sort of box into which we can put data.
There are three simple steps to creating a variable and using it’s data:
Now in the next lesson, I’ll teach you how to create your first variable!
"Please login to view comments"
Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.
How did you manage to remove the blur property and reach here?
Upgrading gives you access to quizzes so you can test your knowledge, track progress, and improve your skills.
By logging in, you'll unlock full access to this and other free tutorials on JSM Pro.
Why? Logging in lets us personalize your learning experience, track your progress, and keep you in the loop with new workshops, coding tips, and platform updates.
You'll also be the first to know about upcoming launches, events, and exclusive discounts.
No spam—just helpful content to level up your skills.
If that sounds fair, go ahead and log in to continue →
Enter your name and email to get instant access
##Looks like we found a thief monkey By the way, I liked the trick how you reached till here. You have a good sense of humor. You will improve a lot if you join our course with this passion.
var
(function-scoped, outdated)let
(block-scoped, modern and recommended)const
(block-scoped, cannot be reassigned)_
, or $
let let = 5;
is invalid)myVar
and myvar
are different)string
, number
, boolean
, null
, undefined
, bigint
, symbol
Objects
, Arrays
, Functions
Subscribing gives you access to a brief, insightful summary of each lecture to stay on track.
00:00:00 Over the next couple of lessons, we'll explore variables and data types, two foundational programming concepts.
00:00:07 Think of variables in JavaScript as containers which hold reusable data.
00:00:12 In other words, they are units of storage, like some sort of a box into which we can put data.
00:00:19 This data can then be used throughout the entirety of your program.
00:00:23 There are three simple steps to creating a variable and using its data.
00:00:29 First, create a variable and give it a name.
00:00:31 Second, store your value in it.
00:00:33 And third, retrieve and use that stored value from the variable.
00:00:38 So, now that you know how variables work in theory, in the next lesson, I'll teach you how to create your first variable.