Personally I’m not a big fan of “continue” and “break”. I think it obfuscates the flow of logic. Using your example above, why not do this:

var arr = [“dog”, “cat”];
var action = ‘greet’;
for(i = 0, ln = arr.length; i < ln; i++) {
animal = arr[i];
if (animal == “cat”) alert(“hello ” + animal);
}

Here we have a one line if condition, so no extra indention is necessary. Plus without the “continue” the code is easier to read.