Edit in JSFiddle

var persons = [ 'Peter', 'Jonah', 'Tyler', 'Jessica', 'Michael' ];
var person;

for (var i = 0; i < persons.length; i++) {
    var person = persons[i];
    // async operation
    setTimeout(function() {
        console.log('Hello', person);   
    }, 10);
}