As the other answers correctly point out, for...in is not for iterating over arrays. A better option is now available in newer JavaScript engines and transpilers like TypeScript with for...of:
var words = ['word1', 'word2', 'word3']
for (word of words) {
console.log(word)
}