What are the data types in JavaScript?
There are 8 basic data types in JavaScript:
Primitive (7 types):
String
:Number
Boolean
BigInt
null
undefined
Symbol
Non-primitive (1 type):
Object
: This is the base type for more complex structures like Arrays, Functions, and other objects.