const s = "abc"; // at(-1) is the last char; [i] cannot go negative console.log(s.at(0), s.at(-1));
at supports negative indices