DEV Community

Lawrence malachi
Lawrence malachi

Posted on

DATA TYPE

  1. Number: Used for numbers and decimals.

  2. String: Used for text. String are written inside quotes.

  3. Boolean: A Boolean has only two possible values which are true or false

  4. Undefined: It means a variable exists, but no value has been assigned to it yet.

  5. Null: null means intentionally empty or no value.

  6. Symbol: A symbol creates a unique value.

  7. Bigint: Used for very large whole numbers that are bigger than what the normal number type can safely handle.

  8. Object: Object let you store multiple pieces of related data together.

Top comments (0)