JS Methods
Data
An Array of Objects - name and year of birth:
const people = [
{ name: 'Wes', year: 1988 },
{ name: 'Linda', year: 1986 },
{ name: 'John', year: 1970 },
{ name: 'Ron', year: 2015 }
];
and a second array - content and ID:
const comments = [
{ text: 'Love this!', id: 1 },
{ text: 'Super good', id: 2 },
{ text: 'You are the best', id: 3 },
{ text: 'Ramen in my fav food ever', id: 4 },
{ text: 'Nice Nice Nice', id: 5 },
];
Results