I have a comma-separated string that I want to convert into an array, so I can loop through it.
Is there anything built-in to do this?
For example, I have this
You can try the following snippet:
var str = "How,are,you,doing,today?"; var res = str.split(","); console.log("My Result:", res)