Data type in Javascript
- satyanarayan behera
- Aug 25, 2022
- 1 min read
We are using variables in JavaScript for various purposes. it is mandatory to understand the data contained by the variable of which type so that operations on the data can be performed by the compiler or the machine.
So now we are going to explain more about data type or we can say type of data which variable stored in JavaScript. There are two kinds of data types, one is primitive values and the other is objects in primitive values. We have 7 kinds of variables order types as below primitive values means the values which contain the variable cannot be changed or immutable, and 1 kind of non Premitive is Object.
7 Premitive Datatype
String
Number
Undefined
Boolean
Null
BigInt
Symbol
Object Data type
Comments