JavaScript Split String Example – How to Split a String into an Array in JS

1 · freeCodeCamp.org · Nov. 3, 2020, 12:22 a.m.
A string is a data structure that represents a sequence of characters, and an array is a data structure that contains multiple values. And did you know – a string can be broken apart into an array of multiple strings using the split method. Let's see how that works with some...