The split() of a String divides a string into a list of substrings and returns them as an array.
const sentence = 'The quick brown fox jumps over the lazy dog.';
const sentenceSplit = sentence.split(' ');
console.log(sentenceSplit);
// ["The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog."]
// another example
const ip = "128.89.121.96";
const ipSplit = ip.split(".");
console.log(ipSplit);
// ["128", "89", "121", "96"]