Understanding datatypes in JavaScript is easy!
We have 7 types of primitive data types in JavaScript
1. Number: Floating point numbers.
2. String: Sequence of characters.
3. Boolean: Logical type that can only be true or false.
4. Undefined: Value taken by a variable that is not yet defined.
5. Null: It also means 'empty value'.
6. Symbol (ES2015): Value that is unique and cannot be changed.
7. BigInt (ES2020): Larger integers than the Number type can hold.
5 likes