String

Extract part of an array or a string (new array) -> slice()

const array = 'hello world';
const result = array.slice(0,5);
console.log(result); // hello

Split string by separator -> split()

const string = 'hello,world';
const result = string.split(",");
console.log(result); // ["hello", "world"]