What are the data types in Javascript?

There are five simple data types in JavaScript:

    Undefined

    Null

    Boolean

    Number

    String

    Object

 

Object is a complex data type and it is an unordered list of name-value pairs.