Last updated on October 31st, 2020 at 06:33 am.
This video is taken from the full course that will teach you HTML, CSS, Programming concepts and Javascript .
Video Transcript:
Hey.
So a brief about the JavaScript syntax.
Instructions are called ‘statements’.
So, this is one statement.
That’s a statement, that’s a statement.
And this function that has these curly braces, this is a ‘block’.
So if they have the curly braces, that is a block of code.
So statements end in semicolons.
And in the ECMAScript definition, it is said that the semicolons are optional.
But always make sure you add them.
And then, you can create spaces in JavaScript by the Tab key on your keyboard or the Space Bar.
There are some spaces that are significant.
Others don’t really matter.
So you can add spaces here, if you want the code to look cleaner.
You can add spaces.
Some places, the spacing does not affect.
But in this case, if you do that, it’ll be affected.
So there are cases where space affects and spaces doesn’t affect.
So the spaces are called ‘white space’.
So these spaces is what you call ‘white space’.
Javascript is also case sensitive.
So that means if you have a variable and you have another variable, this will point to two different variables.
So JavaScript is case sensitive.
So always keep that in mind.
Okay, let’s continue in the next video.
This section is from Learn Javascript from Scratch.
Learn Javascript from Scratch