Node.js · Buffers · Mid-Level · Best Practice
When should you prefer Uint8Array / TypedArrays over Buffer?
Short Interview Answer
When writing portable web-compatible code or sharing with Web APIs; Buffer is a Uint8Array subclass in modern Node.
Detailed Explanation
Interoperability with fetch, WebCrypto, and isomorphic libs favors typed arrays. Still use Buffer APIs when Node-specific helpers help.