$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #135

What is the output?

console.log('abc'.at(-1));
  1. c
  2. a
  3. abc
  4. undefined
at() accepts negative indexes, counting back from the end of the string.
Play Problem Solving ▸