how to use pop on an object from array in javascript code example Example: javascript pop object from array array.pop()