Data types is basically used to specify what kind of data can be stored and manipulated within a program.
It means Data type indicates characteristics of data. It tells the compiler whether the data value is numeric, alphabetic, date etc., so that it can perform the appropriate operation.
There are following Data Type:
JS Number Data Type
The number data type is used to represent positive or negative numbers with or without decimal place
12 30.5 6250000 0.00000925
JS String Data Type
JS Boolean Data Type
JS Null Data Type
null Wel-come to aimtocode! null
JS Undefined Data Type
This can only have one value-the special value undefined. If a variable has been declared, but has not been assigned a value, has the value undefined
undefined Wel-Come to aimtocode!
JS Object Data Type
The object is a complex data type that allows us to store collections of data.