Array - Mixed Types - JavaScript
TRUE - JavaScript arrays can contain multiple types in the same array.
(True / False)
A JavaScript Array can contain mixed data types
I.e. you can have strings, numbers and booleans
all in the same array.
TRUE - JavaScript arrays can contain multiple types in the same array.
JavaScript is a loosely typed language. One of the effects of that is that you can store anything you want in an array.
It is most common, however, that an array will contain a collection of the same type of objects.
Level: Apprentice · More JavaScript terms at this level
Updated