
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Inside the Array.prototype.last function body, you have access to the "this" keyword. "this" is equal to the contents of the array in this case.
You can access elements in the array via this[0], this[1], etc. You can also access properties and method like this.length, this.forEach, etc.