Editor online Mozilla
function foo(items) {
    for (var i = 0; i < items.length; i++) {
        alert("Ace Rocks " + items[i]);
    }
}