Professional Documents
Culture Documents
----------------------------------
1.number--it can store numeric data 2^53-1
2.bigint--it can store numeric data > 2^53-1,the value should be
suffixed with n
eg:
var price=10000; -->number datatype
var price=10000n; -->bigint datatype
3.string--it can store char (or) chars
4.boolean--it can store true|false
5.undefined--it can store null|undefined,this will be applied to
a variable without initialization
eg:
var a; -->undefined datatype
eg:
var a=100; --> datatype applied is number
..
a="xyz"; --> datatype applied is string