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