elibraryportal Logo

JS DataType

Data types is used to identify the which type of data that is stored inside a variable, during the script execution program.


Types of Javascript DataType

There are two types of JavaScript data types that is.

  1. Primitive Data Type
  2. Non Primitive Data Type

1) Primitive Data Type

Data TypeDescription
StringIt represents double quote of characters e.g. "elibrary"
NumberIt represents numeric values e.g. 100
BooleanIt represents boolean value either true or false
UndefinedIt represents undefined value
NullIt represents null i.e. no value at all

2) Non Primitive Data Type

  • Object
  • Array
  • RegExp(Regular expression)
Next TopicJS Operator