$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #277

What goes in the blank?

// last element, without changing the array
const last = arr.at(____);

Answer: -1 (also accepted: -1)

A negative index counts back from the end, so at(-1) is the final element.
Play Problem Solving ▸