if we have to delete an array what function should we use code example Example: how to delete an element from an array var array = [123, "yee", true]; array.pop(index);