Strings In Depth4 / 18
Up next

Character with at()

const s = "abc";
// at(-1) is the last char; [i] cannot go negative
console.log(s.at(0), s.at(-1));
What you're solving

at supports negative indices