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

What goes in the blank?

// index of the final element
const last = arr[arr.____ - 1];

Answer: length (also accepted: length)

Array indexes stop at length - 1.
Play Problem Solving ▸