DEV Community

Discussion on: Array Methods That .pop()

Collapse
 
britnorcodes profile image
Em 💫

Thanks for your feedback. An array is a variable containing multiple values but yes the type is Object 😊

Collapse
 
ecyrbe profile image
ecyrbe • Edited

Hi em,

An array is NOT a variable. A variable is a binding between a symbol and a value. For instance an array Can exist without being bound to a variable.
See this wikipedia article

Collapse
 
ecyrbe profile image
Info Comment hidden by post author - thread only visible in this permalink
ecyrbe • Edited

Hi em,.
An array is NOT a variable. An array is an object containing multiple values. An array can exist and not be bound to any variable.
Think of an array of arrays, there are no variables in the embedded array.
An array is a data structure, a variable is a programming binding to easily access data structures.

See this wikipedia article

Some comments have been hidden by the post's author - find out more