-2

I have a problem, but I don't know how to solve it.

I got a handful of words from Cookies.get, separated by commas. Like this: apple,pineapple,tomato How can I put these words into an array?

Thank you very much.

Banane777
  • 41
  • 5

1 Answers1

1

Use the split method. Ex. words.split(","). Documentation here.