To use a method on a given array, we type
.methodName. They are all defined in the
Array.prototype object. Here, however, we won’t be using these; instead, we’ll define our own versions starting from the simple method and build up on top of these until we get them all.