code: function listMajors(auth) {
    const sheets = google.sheets('v4');
    sheets.spreadsheets.values.get(
      {
        auth: auth,
        spreadsheetId: '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms',
        range: 'Class Data!A2:E',
      },
      (err, res) => {
        if (err) {
          console.error('The API returned an error.');
          throw err;
        }
        const rows = res.data.values;
        if (rows.length === 0) {
          console.log('No data found.');
        } else {
          console.log('Name, Major:');
          for (const row of rows) {
            // Print columns A and E, which correspond to indices 0 and 4.
            console.log(`${row[0]}, ${row[4]}`);
          }
        }
      }
    );
  }
docs: Print the names and majors of students in a sample spreadsheet:
  https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit