Login
Remember
Register
Ask a Question
Which of the following is used to handle errors in Node.js?
0
votes
asked
May 25, 2024
in
NodeJS Essentials
by
rajeshsharma
Which of the following is used to handle errors in Node.js?
A) try/catch
B) throw
C) assert
D) all of the above
handle
errors
node
js
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 25, 2024
by
rajeshsharma
Answer: D
Explanation: try/catch, throw, and assert are all used to handle errors in Node.js.
...