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, 2019 in Others by shubham
• 6,910 points

retagged Jul 5, 2019 by Kalgi 130 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, 2019 by sunshine
• 1,260 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
114 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, 2019 in Others by Priyaj
• 57,530 points
93 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, 2019 in Others by Nabarupa
1,477 views
0 votes
1 answer

What is the difference between the Internet, Intranet, and Extranet?

The terminologies Internet, Intranet, and Extranet are ...READ MORE

answered Feb 24 in Others by anonymous
• 8,620 points
65 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, 2019 in Others by ArchanaNagur
• 2,320 points
79 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,850 points
93 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, 2019 in Others by sunshine
• 1,260 points
107 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, 2019 in Others by sunshine
• 1,260 points
1,946 views