Projects > JS Array P2
June 07, 2021 | Vanilla JS
Day 7 Challenge of 30 day JS, implementing JS Array P2.
students.some(student => student.born > 2010); // return true
students.every(student => (student.dies - student.born) > 20);
students.find(student => student.first_name === 'Halsey');
// This return an object that contain Halsey as first name
// Check in console.log when click
students.findIndex(student => student.email.includes("doumic"));
// Return index number if exists
There are 10 records of the students, please check in the console