Which of the following is true regarding buffer instances in Node.js?

  • Buffers in Node.js are resizable, allowing you to change their size dynamically.
  • Buffers can be directly manipulated using arithmetic operations like addition and subtraction.
  • Buffers in Node.js are fixed in size once allocated and cannot be resized.
  • Buffers automatically handle memory management, so there's no need to free memory explicitly.
Buffer instances in Node.js are fixed in size once allocated, meaning you cannot change their size dynamically. If you need a larger buffer, you would need to create a new one and copy the data if necessary. The other options are not accurate descriptions of buffer behavior in Node.js.
Add your answer
Loading...

Leave a comment

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