Typically, arrays are meant to store elements of the same type. However, in languages like JavaScript, arrays can store elements of different types because they are implemented as objects​​.