This lecture is all about data types in Zao by script so javascript provides a different data type to
hold different type of values.
So if you have heard about the data types in any other programming languages it is simply a type.
In order to hold the different values so you can have different type of data types like a string and
it can be integer no more boolean is and the null is also a data type.
So let's see what other types of the data stories are basically data types that is available in an hour
by script.
So first one would be your primitive data type and the second one would be your non primitive that is
that a friend's data type.
So javascript is simply a dynamic type language's is we have a lady said in the case of a python which
is also a dynamic type so that means you don't need to specify the type of a variable because it is
dynamic and it is use by JavaScript engine or basically the browser.
That means you need only to use the VODs cured and doing this is specified the data type so in the case
of the javascript you have to do something are basically in the case of the solver.
You have to do something like this so in order to create the integer in order to create the fluid variable
you have to this make use of these keywords in order to specify different doctor type but in the case
of a python.
Python is basically a dynamic type.
In the case of python you need not simply even add the vital keyword.
In the case of Python but in the case of zombies you really have to just give the virus your name of
the variable and give the value it assign the value to this variable.
So this is also a dynamic type language.
So let me just create one variable over here.
Let me say fifty seven would be the value.
And it is basically holding your number so you can see here we have created the variable that is a.
And let me just create an order very well let me say B and let me say something that these will get
and it could see here it is now holding that these string so the same keyboard that is VAR is use but
here it is a different data type is holding the number and B is holding this string which is basically
a text which is given inside this double chord.
So you can simply see over here the javascript is dynamic type language.
That means you don't need to specify the type of a variable because it is dynamically used by there's
always scrutinizing all you need to do is simply pass the word cured and they just assign what is the
value to these variable.
So first of all the JavaScript has 0 4 or basically 5 primitives data types.
That means it has the five types of primitive data types and first one easier string over here and you
can see simply in order to create this string you have to give any takes inside this double chord or
it can be also a single chord.
So if I just say C and if I just give a single chord and let me say Doc so this is a serious string
so it pays a spring to over here.
This dog is also a string which is a primitive type in a javascript similar the next store data type
would be your number and it represents the numeric value simply over here 57 which is basically holding
the number which is another primitive data types.
So the next one would be your boolean which is either true or false.
So if I just say LA and let me say the logic is our variable name and if I just pass here false.
So we have created the boolean variable which is the name of logic and it stores false.
So boolean is either true or false.
You can restore either of value which is 0 or 1 which is basically your boolean which is another data
type in the next one would be your undefined data tape was you can see over here.
So if I just say something like var v and the v if I just print this V then you could see the value
is undefined that means you have just created the variable but it is undefined the value to the variable
is not given.
Which is basically what we said undefined.
And the next one is your null.
So the null is that another primitive data types.
That means no.
Which is no value at all.
So if I describe the variable that is number and this past.
No.
So if I just pass the number or print the number and then it will see null allow not undefined.
So in the case of V over here which was not defined which is basically the undefined which is not initialized
given the value it is undefined.
But in this case we have given some value to the variable.
So it's not so the undefined tool is still.
So you null which is no value at all.
So num here doesn't contain any value except the null which is different from the undefined so you can
see we have the five primitive data types which is the number string of boolean null and undefined.
So next type of the data type in the javascript is non primitive.
Data types and we have three non primitive data types and will this study in detail in the upcoming
lecture.
But just remember for now we have the three non primitives the data type which is object error and resource
expression which is basically your regular expression.
So Frist and the important would be your object and object represents the instance through which we
can assist that members and the next one would be your array which is very important to which to represent
a group of similar values like we say the least in the case of a python.
And the next one is your regular expression which is at a red expression.
So this will be discussed in the upcoming lecture.
But just remember that we have the two types of data type in Dodd's advice keep.
First one is primitive which represents these some of these important data types which is the boolean
number string null and undefined and the non primitive data types which is the advance lecture in the
upcoming lecture will be covered and that our object it is and regular expression.
So this is the raft for the selectors in the next.