What are the different data types present in javascript?
Common Data Type
The following are data types commonly used in JavaScript
- Boolean (
true, false
) - Null (
null
) - Undefined (
undefined
) - Number (
1, 4, 7, 231, 51, 11, 9
) - BigInt (
9007199254740991n
) - String (
'Hello', 'World', 'Uzbekistan'
) - Symbol (
let sym1 = Symbol()
) - Objects (
{a: 123}, [1]
)
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.