const a = str.split(/:/); for (let i = 0; i < a.length; i++) { console.log(a[i]); }
Programming Tips - javaScript: iterate though the result of a split()
Date: 2014aug12
Language: javaScript
Level: beginner
Keywords: enumerate
Q. javaScript: iterate though the result of a split()
A. Like this: