JavaScript Lost Its Way With Error Handling
Reasoning About JavaScript Errors Used to Be Simple
We had a dedicated channel in callbacks. We knew when something went wrong for that function.
⛶fs.readFile('file.txt', (err, data) => ...