what is the difference between error and stderr in Node.js?

+1 vote
I am using Node.js and want to handle errors, but I am confused when to use what can anyone of you explain?
Jul 4 in Others by shubham
• 6,890 points

retagged Jul 5 by Kalgi 53 views

1 answer to this question.

+1 vote

Error is an object created by Node.js to handle the errors while executing your command

Stderr is a standard output stream which is used to handle errors that are ready to be executed by the Node.js but results in an error because the command itself throws the error

answered Jul 4 by sunshine
• 1,240 points

Related Questions In Others

0 votes
1 answer

What is the difference between hadoop and google analytics ?

I will try and answer this as ...READ MORE

answered Aug 21, 2018 in Others by Frankie
• 9,810 points
50 views
+1 vote
1 answer

What is the difference between Dark Web and Deep Web?

The content that which you cannot find ...READ MORE

answered Feb 6 in Others by Priyaj
• 56,520 points
64 views
0 votes
1 answer

What is the difference between BASH and DOS?

The major difference between the BASH and ...READ MORE

answered Mar 8 in Others by Nabarupa
91 views
+1 vote
2 answers

What is the different between xml and json?

These are the differences:   It is JavaScript Object ...READ MORE

answered Feb 7 in Others by Junaid
48 views
0 votes
1 answer

Why is MongoDB associated with Node.js?

Node.js is an open source server environment ...READ MORE

answered Jul 18 in Others by ArchanaNagur
• 2,270 points
27 views
0 votes
1 answer

how to safely deploy npm install without it causing inconsistencies?

The recent versions on npm generates a ...READ MORE

answered Apr 11, 2018 in DevOps on Cloud by DareDev
• 6,810 points
63 views
0 votes
1 answer

What is the difference between loadash and underscore

Loadash makes iterating arrays, strings, and objects easy in ...READ MORE

answered Jun 21 in Others by sunshine
• 1,240 points
57 views
0 votes
1 answer

Why do we use Body-parser in Node.js?

For understanding this first you need to ...READ MORE

answered May 20 in Others by sunshine
• 1,240 points
57 views