Seeing All of Your Nested Data
The website volunteer wants each rejected row kept whole. So Joan gathers one result, the month,
the total and the rejected list, and checkRows() now gives each entry its line, its row (date,
donor and amount) and the reason. In Python, the end of main() builds that dictionary and prints
it on one long line, down to each row.
The port builds the same object, its keys without quotes, and total and rejected in shorthand,
each a key named after its variable (total for total: total). Then console.log() does
print()’s job:
const result = {
month: "October",
total,
rejected,
};
console.log(result);
Run on the October export, it logs this: