push() allows us to add items to the end of an array. Here is an example of how this is used:
var bucketList = ['item 0', 'item 1', 'item 2'];
bucketList.push('item 3', 'item 4');
push() would make the
bucketList array look like:
['item 0', 'item 1', 'item 2', 'item 3', 'item 4'];
Check out how
push() works here:
It connects to
bucketList with a period.
Then we call it like a function. That's because
console this whole time!