Programming Languages
JavaScript
Subjective
Sep 25, 2025
What are JavaScript data types?
Detailed Explanation
JavaScript has 8 data types:
Primitive types:
1. Number - integers and floating-point numbers
2. String - text data
3. Boolean - true/false values
4. Undefined - declared but not assigned
5. Null - intentional absence of value
6. Symbol - unique identifiers (ES6)
7. BigInt - large integers (ES2020)
Non-primitive type:
8. Object - collections of key-value pairs, including arrays, functions, dates, etc.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts