Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (4 sloc) 305 Bytes

Manipulate Arrays With pop()

Another way to change the data in an array is with the .pop() function.

.pop() is used to "pop" a value off of the end of an array. We can retrieve this value by performing pop() in a variable declaration.

Any type of variable can be "popped" off of an array.

Something went wrong with that request. Please try again.