70.1k views
22 votes
What is an example of a situation in which you might use the append method? In what ways is the append method limited?

1 Answer

9 votes
If I had an array of the names of people who just walked in the door. I’d append the name of the person who came in next. To update the array.

The append method needs to be looped through to add multiple inputs
User Nlloyd
by
6.1k points