What happens if a .catch() is not provided for a Promise in JavaScript?
A) The promise will resolve regardless of errors.
B) The error will be ignored.
C) The error will be passed to the next promise.
D) The error will result in an unhandled error.
What happens if a .catch() is not provided for a Promise in JavaScript?
A) The promise will resolve regardless of errors.
B) The error will be ignored.
C) The error will be passed to the next promise.
D) The error will result in an unhandled error.