Open this example in the interactive library
Source code
import { Buffer } from "node:buffer";
console.log(Buffer.concat([Buffer.from("a"), Buffer.from("b")]).toString());
Sample output
ab

Open this example in the interactive library
import { Buffer } from "node:buffer";
console.log(Buffer.concat([Buffer.from("a"), Buffer.from("b")]).toString());
ab