jsQuiz args

by David McClelland

JavaScript

function iterate(...data){
data.forEach(function (item) {
alert('item: ', item);
});
}
iterate(1,2,3);