Array.prototype.at() Playground

Train #1 at Stasiun Kota Kecil has index plates from the front and back: Sri asks for wagon -1 through at(), arr[-1] and arr[arr.length - 1], then writes to…

The key idea

at() understands negative indexes, brackets do not

Try it in this playground