What are the data types in JavaScript?
Question :
What are the data types in JavaScript?
The data types in JavaScript are:
- Primitive types: number, string, boolean, null, undefined, and symbol (added in ES6).
- Reference types: object (including arrays and functions).