✅ how to take out items in a string into an array and making it work for other strings?
Ive been trying to take out the topping items and put them in an array from this line of string but im not sure how. I need to make a for loop and use .split or .substring or something im not too sure. Also, the code needs to work for different strings like this where there are more or less toppings, not just this string. help please!
2 Replies