Take for example the asynchronous function Node fs.stat(). If I need to use fs.stat()in the file, do it later, the result will be obscured.
fs.stat(file, function(err, stats) {
fs.stat(file, function(err, stats) {
});
});
The variable is changed err, as well as the variable stats- does it even matter if I do not use the first callback inside the second? Is it better to rename the second callback variable?
Does these variables overwrite one or more times any performance impact?
source
share