29
π₯ Datatypes in JavaScript
βοΈ What are Datatypes ?
It defines the category for data which will be stored in a variable
βοΈ Types of Datatypes ?
a. Primitive
b. Object/Reference
βοΈ Primitive Datatypes ?
The datatypes which hold only single value at a time is called Primitive Datatype
Example: number, Boolean, character, String, null, undefined
βοΈ Object/Reference Datatypes ?
The non-primitive datatypes are called object based/reference data types
Ex: Arrays, Objects itself.
29