In nodeJs callback pattern, an error is encountered during execution. this error is passed as the first argument to the callback! What are the advantages of this pattern?
for example:
fs.readFile(filePath, function(err, data) { }
Why err is the first argument in this pattern?