Question 4
Consider the following JavaScript code. What will be logged on to the console once the code is executed?
const emails = [ 'user1@study.iitm.ac.in', 'user2@gmail.com', 'user3@study.iitm.ac.in',]
const studentsEmail = emails.filter((email) => email.endsWith('study.iitm.ac.in'))console.log(studentsEmail)