Start with arrays of student names for each class/cohort:
const cs1 = ['Doug Funny', 'Patty Mayonnaise', 'Skeeter Valentine'];
Zoom will return an array of names of participants (students) sorted alphabetically by first name:
['Doug Funny', 'Skeeter Valentine'];
To determine the class these students belong to and make it possible to record them on the correct spreadsheet, we'll need look for a matching name from the class array and return that class as the result.
Given the above Zoom response, when the code runs it should return cs1, because 'Doug Funny' is a student in the cs1 array.
Start with arrays of student names for each class/cohort:
const cs1 = ['Doug Funny', 'Patty Mayonnaise', 'Skeeter Valentine'];Zoom will return an array of names of participants (students) sorted alphabetically by first name:
['Doug Funny', 'Skeeter Valentine'];To determine the class these students belong to and make it possible to record them on the correct spreadsheet, we'll need look for a matching name from the class array and return that class as the result.
Given the above Zoom response, when the code runs it should return
cs1, because'Doug Funny'is a student in the cs1 array.