function myFunction (aList) {
    for (var element of aList) {
        console.log(element);
    }
}
myFunction([1,2,3,4,5]);