Print Elements From Array Using Arrow Function

Method 1

var a = ["a", "b", "c"];
a.forEach(function(entry) {
  console.log(entry);
});

Method 2

var a = ["a", "b", "c"];
a.forEach((element) => {
        console.log(element)
    }
);