What are data types in JS?

Data-type :
A data type is a classification of data which tells the compiler or interpreter how the programmer intends/wants to use the data.
There are two types of data types in JavaScript namely Primitive data types &
Non-primitive data types.

Primitive Data types are :point_down:
Predefined / In-built data type which are provided by JS itself.

  1. Number
  2. Strings,
  3. Booleans
  4. Undefined
  5. Null

Non-Primitive Data types are :point_down:
Data type which are derived from primitive data type.

  1. Object
  2. Array

Feel free to reach out to me.
If you found this post interesting don’t forget to click :point_up_2: :heart:

Thanks & Regards,
Ganesh Patil | TA - Edyoda


But i read 7 type of data type in Java script which is:

Number ,null, bigInt, Boolean, string ,symbol, undefined