We have declared an array of animals let animals = ["dog", "cat", "hamster"];
. Then we call the method animals.pop();
. As a result, the animals array will look like this:
["dog", "cat"]
["cat", "hamster"]
["hamster"]
["dog", "cat", "hamster"]
Answers Explanation & Hints:
After calling the method
The |