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
• 7,320 points

retagged Jul 5, 2019 by Kalgi 621 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,280 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
525 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
• 58,120 points
233 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
5,957 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, 2020 in Others by anonymous
• 82,780 points
1,552 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,340 points
547 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,890 points
204 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,280 points
225 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,280 points
5,450 views