Welcome back!
I wanted to show you something that we haven't really talked about.
But again, it's important to know and that is that JavaScript has its own language to start off with.
And these are called 'keywords' and you can see here
these are all JavaScript 'keywords' and what they mean is that when I changed this from 'Markdown' to 'JavaScript',
well, all of these, you can see have changed colors and that is because all these words are cues within JavaScript
that if you use them, it already has a predefined meaning attached to it.
So, for example, if we open up the browser
and I do 'var for = 7', I'll get a 'SyntaxError' because, well 'for' is used for 'for loop'.
I can't do
'var' equals 'var'
'= 8' because, well, 'var' already means something in JavaScript.
So, JavaScript 'keywords' are words that you cannot use, because it'll have unintended consequences.
JavaScript is going to read it and say 'Oh, you're trying to mean something that I already know the meaning
of'.
So, this list over here.
You just have to be cautious that you don't name your variables or your functions this way.
But as you can see, these are the words that we've been using up until this point to create functions, to create
'for' loops and we'll encounter these throughout the course.
But I wanted to leave this for you in the next section, so that you'll have it as a reference.
I also want to show you what we've learned so far and I'm going to change this back to 'Markdown' so
it's a little bit cleaner.
Look at all the stuff we've done. We've done 'looping'.
We've learned about 'data structures', we've learned about 'functions', 'logical operators', 'conditionals', 'variables',
'comparisons' and 'types', and there's still a few things that are grayed out here, but we've learned 80%
of what's really-really important in JavaScript.
These other the ones that we'll get to in the advanced section, but what we've learned up until now is
something, that all computer programs have.
Once you learn this, if you wanted to learn a new language, there are small minor differences, but they
all have 'types'.
They all have 'conditionals'.
They all have 'loops'.
So once you master one programming language, you can move on to others a lot faster than your first one.
So use that as motivation to go through all these things, that we've learned, because in the next few sessions
we're going to learn even more.
We've got a lot covered.
I'm really proud of you making it this far.
Can't wait to see you on the next video.