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.
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.
 
    
    Use the split method. Ex. words.split(","). Documentation here.
