Difficulty: 5/10error handling, stream events, pipeline1By listening for the error event on the stream instances.2Additionally, you can use try-catch blocks when working with streams to catch synchronous errors.javascriptCopyScenario Questions0-2 years experience1You need to read a large file using a readable stream and write it to another file. How would you make sure that any read errors are properly caught and the process doesn't crash?2If a writable stream emits an 'error' event while you're piping data from a readable stream, what steps do you take to handle it and clean up resources?2-5 years experience1Follow-up QuestionsWhat happens if you forget to add an 'error' listener on a stream?How does `stream.pipeline` change the way you handle errors compared to manual `pipe` chaining?Can you give an example of propagating an error from a Transform stream to a downstream consumer?Suggest Improvement