Not that we know their variables do exist.
We can work with variables.
Can I change the data inside of a variable?
Yes, I can.
So let me show you how to do that.
So in my first example, the first name and the last name, those two variables, they hold a string.
If you point to the variable, you can see what type of data is inside.
JavaScript does that by itself.
It checks and it makes the assumption that it's a string inside.
When I point to age in those is a number.
But let's say I want to change my age.
If I want to change my age, I just need to type the variable again without the lat.
Or I can use the let and change to 32 my actual age.
Why not save and look at this it change it to 32 years old over here.
But what happened?
If I don't want to, I want to make sure the variable stays with that data.
Maybe the math calculation.
I'm calculating some percentages and that number needs to keep the same.
So instead of using LAT, we need to use const.
When you use const, JavaScript knows that's a variable, but a variable that cannot be changed later
on in your code.
As soon as I save I get my error assignment to constant variable at six five.
So main as lines five.
And six.
So JavaScript doesn't like that, but if you want to make sure the variable stays with that information
throughout the whole code and nobody can change later on, you should use constant, constant, constant
cost.
Otherwise use.
Just let.
Let me save the information.
And here we are.
Good to go again.
And the same happens to you.
Any other variable, just repeat the variable and you have the result.
So that's it?
That's our project.
Number one.
We got to the end.
We use the variables.
We know how they works.
And congratulations.
Well done.