With the slice() method, we can extract a piece of a string.

See that? The numbers that we pass to slice() are the start and end position of the string we want to extract.

Psst: if we use negative values, the position is counted from the end of the string.

Make sure to double check the syntax.