What are primitive data types

Posted by Jennifer | Updated on

A primitive data type is data that has a primitive value (which has no properties or methods). There are 5 types of primitive data types.

  1. string
  2. number
  3. boolean
  4. null
  5. undefined

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers