The charAt() method of String values returns a new string consisting of the single UTF-16 code unit at the given index.
charAt(index);
// Example
const car = "benz";
car.charAt(0); // 'b'
The slice() method of String values extracts a section of this string and returns it as a new string, without modifying the original string.
slice(indexStart)
slice(indexStart, indexEnd)
// Example
const name = "hell boy"
name.slice(-1) = 'y'