Using split() method
The split() method splits a string into an array of substrings based on a specified delimiter. If no delimiter is provided, it treats the entire string as a single element.
Using spread operator
The spread operator can be used to transform a string into an array of characters directly.
The Array.from() method can also convert a string into an array of characters.
Using split() with regular expression for words
To split a string into words, you can use a regular expression with the split() method.