frontend-challenges
frontend-challenges copied to clipboard
115 - forEach and this - javascript
index.js
let group = {
title: "Our Group",
students: ["John", "Pete", "Alice"],
showList() {
this.students.forEach((student) => {
console.log(this.title + ': ' + student);
});
}
};
export { group };