What are the various datatypes supported by JavaScript?

Solution

In JavaScript, there are three primary data types, two composite data types, and two special data types.

Primary Data Types

The primary (primitive) data types are:

  • String
  • Number
  • Boolean

Composite Data Types

The composite (reference) data types are:

  • Object
  • Array

Special Data Types

The special data types are:

  • Null
  • Undefined

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media