When creating a buffer in Node.js, if you do not specify an encoding type, the data will be treated as ______.

  • binary
  • text
  • utf-8
  • base64
If you don't specify an encoding type when creating a buffer in Node.js, the data will be treated as binary. This means that Node.js will not attempt to interpret the content as characters but will treat it as raw binary data.
Add your answer
Loading...

Leave a comment

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