Hey there, how are you? Is everything fine? Hopefully, you are saying yes. But for those who are saying no, I can only pray to happen all the things fine.
var name = "Pooja"; // holding string valuevar rollno = "45"; // holding number value
- Primitive Datatypes
- Non-primitive datatypes.
Are you expecting explaination from me? Yes, okay I will definitely provide you. Relax
String is a datatype that holds the sequense of character.
Number is a datatype that holds the number value like 0,1,2, etc.
Boolean is a datatype that return only two values true or false. And unidefined represents the undefined value like which is not defined or declared.
Null holds no value.
Now its turn for non-premetive datatypes. Let’s get started with it too.
I am providing the list of non-premitive datatypes here:
Let me tell you in very short the use of above three.
Object is an instance through which we can access members.
Array represents a group of similer values.
RegExp is a like a mix mode. e.g. email@example.com.