Erlang provides two types of data types:

  • Constant data type: This data type cannot be split into primitive subtypes as it consists of Atoms and Numbers.
  • Compound data type: This data type is used to put together other data types, and it consists mainly of lists and tuples.
BY Best Interview Question ON 13 Jan 2019