javascript parse input string to array code example Example: convert string to array javascript let myArray = str.split(" ");