What happens when you try to access an index in a buffer that does not exist in Node.js?

  • It returns null
  • It throws an "IndexOutOfRange" error
  • It returns an "undefined" value
  • It automatically resizes the buffer
When you try to access an index in a buffer that does not exist, Node.js throws an "IndexOutOfRange" error. Buffers do not automatically resize.
Add your answer
Loading...

Leave a comment

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