bug-clinic
bug-clinic copied to clipboard
In SCAN why do we need to user console.error("end"); instead of console.log?
Why ?
res.on("end", function (e) {
console.error("done!");
});
Why is this not ok?
res.on("end", function (e) {
console.log("done!");
});
Because the idea is to separate your diagnostic output from your program's expected output – console.log and console.error print their results to different file descriptors (stdout and stderr, respectively). Is that unclear from the text in the workshopper?
apparently not but im just one reference point so... thank you for the tutorials btw!