Welcome in this video.
I will explain what a syntax is.
What is a syntax in programming language syntax.
Basically refers to vocabulary and grammar that is used to construct a program just like with the English
language.
You have to create valid sentences using words and points which means in programming the syntax is a
set of rules that kind to you.
In doing that.
So is a set of rules will guide you as to how you construct your computer programs.
Now every programming language has its own syntax just like American English is different in some aspects
to British English so the syntax is basically a bunch of rules that enables you to construct a valid
format.
And this also includes a combination of the constructions that you use in putting a program together.
So let me show you a basic example of a javascript syntax.
So this is a diverse group.
Syntax is just a basic one and in this example here we've got some key words here.
This word far is basically known as a variable.
It is use as a storage container.
So in this example here I've got a variable called first number and is in the course to assign me the
value of a sermon.
All that means is that this value 7 is going to be stored in this container called first number.
And here the value it which is going to be stored in this container called second number so the the
number first numbers have no names.
I give in to this key word variable is a key word.
I am part of the javascript programming languages and syntax component of javascript programming language.
A poster here is known as an assignment operator.
It's also part of the syntax.
It is used to assign value to whenever you see.
This equals sign in syntax a programming syntax is basically referring to is using that to assign value
is an instruction to assign.
So what this basically is saying is that there's value 7 inside this box called First no value date
inside this box called the second number so this was.
It's an assignment operator or is known as an assignment operator.
In some programming language you don't necessarily have to put my colon after you've declared something
in javascript.
You too once should declare a variable in javascript.
You need to put a semicolon that is part of the javascript syntax so every programming language has
its own way of doing things which is referred to as the syntax.
So the key thing to take away or you see the word syntax is referring to programming languages vocabulary
and grammar.
Basically what this means is basically a set of rules of how your programs are constructed.
Thanks for watching and bye for now.