Open this example in the interactive library
Source code
import { Buffer } from "node:buffer";
console.log([...Buffer.alloc(4, 0xab)]);
Sample output
[ 171, 171, 171, 171 ]

Open this example in the interactive library
import { Buffer } from "node:buffer";
console.log([...Buffer.alloc(4, 0xab)]);
[ 171, 171, 171, 171 ]