3 ways to remove an element at the end of the array using JavaScript