0 / 60 seg.

What method is used to extract a part of a string from index 0 to index 4 (excluded)?

const str = "abcdef";