You are developing a Node.js application that receives binary data from a TCP stream. Which Node.js construct would you use to handle this binary data efficiently?

  • Buffer
  • Array
  • String
  • Number
In Node.js, the Buffer construct is specifically designed for handling binary data efficiently. It allows you to work with raw binary data directly. The other options (Array, String, Number) are not suitable for handling binary data efficiently.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *