Browse - Programming Tips - How do I iterate though the result of a split?

Date: 2014aug12
Language: javaScript
Level: beginner
Keywords: enumerate

Q.  How do I iterate though the result of a split?

A.  Like this:

var a = str.split(/:/); for (var i = 0; i < a.length; i++) { console.log(a[i]); }