how to turn a word into an array javascript code example Example: convert string to array javascript let myArray = str.split(" ");