6 Javascript syntax – JavaScript for Beginners

Last updated on October 31st, 2020 at 06:33 am.

6 Javascript syntax - JavaScript Tutorial 2018

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

Comment Here

Need WordPress help? Linux Server help? Talk to us.

  • We are your own WordPress customer service.
  • We set up Linux servers and install or migrate WordPress. Learn more here.
  • We support WooCommerce too.
  • Check out our WordPress customer support plans here or contact us below .

If you have any questions regarding WordPress support, Linux server support or any of our services, feel free to reach out or read more on our services page.

Join this free course:

How to host multiple WordPress
websites on a VPS

Close me!