Can someone explain how I can utilize foreach in this scenario to showcase all the names?
exampleData: [{
id: "1",
name: "John"
}, {
id: "2",
name: "Jane"
}]
The following code snippet does not seem to be working:
this.exampleData.forEach(function(item){
console.log(item.name);
});