- In the example above, calling
.pop()
on thenewItemTracker
array removeditem 2
from the end.
well, they didn’t call .pop( on the array, I almost got lost it trying to follow the example to the T.
- In the example above, calling
.pop()
on thenewItemTracker
array removeditem 2
from the end.
well, they didn’t call .pop( on the array, I almost got lost it trying to follow the example to the T.
const newItemTracker = ['item 0', 'item 1', 'item 2'];
const removed = newItemTracker.pop();
newItemTracker
is most certainly an array, and pop is most certainly called on the array