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