var a = ["a", "b", "c",1,2]; a.forEach(function(entry) { console.log(entry); }); Run code snippetHide results