When I write some javascript such as this:
var words = [\'word1\', \'word2\', \'word3\'] for (word in words) { console.log(word) }
The
For ... in is intended for objects -- see this question. Apparently it can (and is) used for arrays, but this has a few risks you may not want.
For ... in