There are two basic groups of dataypes in JavaScript – Primitive types and Reference types. Primitive types are number and Boolean data types. Reference types are more complex types like strings and dates.