Web Development
Node.js
Subjective
Sep 30, 2025
Explain the difference between Buffer and String in Node.js.
Detailed Explanation
Buffer handles binary data and has fixed size, while String handles text data with variable size. Buffer is more efficient for binary operations, file I/O, and network operations. Strings are encoded in UTF-8 by default.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts