Complex (or composite) data types:
- is an alternative name for primitive types.
- may consist of multiple elements, of which is of a primitive type.
- may consist of multiple elements, each of which may be of a primitive or composite type.
- are not used in JavaScript.
Answers Explanation & Hints:
Complex (or composite) data types in JavaScript can consist of multiple elements, and each element can be of a primitive type or another complex data type. Examples of complex data types in JavaScript include arrays, objects, and functions. Primitive types, on the other hand, are not complex data types. They are basic data types that represent simple values, such as numbers, strings, booleans, null, and undefined. Therefore, complex data types can have multiple elements, each of which can be either a primitive type or another complex data type, making them more versatile and flexible in storing and representing data. |