Valores indexáveis JS
// Before ES2022
arr[arr.Length -2]
// After ES2022
[1,2,3,4,5].at(3) // returns 4
[1,2,3,4,5].at(-2) // returns 4
Puzzled Puffin
// Before ES2022
arr[arr.Length -2]
// After ES2022
[1,2,3,4,5].at(3) // returns 4
[1,2,3,4,5].at(-2) // returns 4