Which of the following stream types is used for reading data in Node.js?
- Writable Stream
- Readable Stream
- Duplex Stream
- Transform Stream
Readable Streams are used for reading data in Node.js. They allow you to read data from various sources, such as files, HTTP requests, and more, in a non-blocking and efficient manner.
Loading...
Related Quiz
- You are developing a RESTful API using the http module and need to support CORS. How would you implement CORS headers to handle pre-flight requests in your HTTP server?
- What does a 0 as the major version (e.g. 0.1.2) signify in semantic versioning?
- When designing a schema for a SQL database in Node.js, the ______ key is used to establish a relationship between two tables.
-
Developers can use npm deprecate
[@ ] to mark a package or a specific version as deprecated, displaying a warning message ______ to any developers installing it. - What is the significance of the HTTP status code in the response of an Express API, and how does it affect client-server interaction?