A value in JavaScript is always of a certain type. For example, a string or a number. There are six basic data types in JavaScript. These are:

  1. Numbers
  2. Strings
  3. Booleans
  4. Objects
  5. Functions
  6. Undefined Values