How about this for the loop?

var arr = [“dog”, “cat”];
for(i = 0, ln = arr.length; i