In this video.
Let's talk about syntax for variable declarations, meaning how we can write or use variables.
So let's see the syntax or how to create.
First of all, in JavaScript there are three ways to declare variables and it start with a keyword.
And for these keywords we have three types.
The first one is to use var and var is function, scope or globally scoped.
But don't worry about this technical term.
The key point here is that we can declare a variable using var keyword and I'll explain this one to
you as you move on in this course, because these are advanced concepts.
The next point is that we can use let keyword also.
So to create a variable and let is a block scope.
Again, don't worry about these technical terms here.
The key point here is or are the var let.
And lastly, we can declare a variable using const.
So let's look at the actual syntax.
Let's say that this is our code.
As you can see, before declaring a variable, you need to bring in what is called a keyword.
And this keywords are what we have just listed, and one of them is the const.
So we can use const or var or let.
Again, declaring a variable must begin with a keyword and these keywords are var, let or const, and
from there we name our variable meaning we are going to name our box and we call this one as the variable
name.
And lastly, some value what we want to keep inside the variable.
So it goes like this.
This is like a container or our box and this is a value that we want to put inside the box.
So now this is the value and this is the container or box and this is the keyword.
Now that we know the structure for declaring variables, the next video, we will get back to code.