Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSBuffer for binary dataSingle-choice MCQ

What does Buffer.concat([a, c], 3) produce here, and what is the role of the second argument?

const a = Buffer.from([1, 2, 3]); const c = Buffer.from([4, 5]); console.log(Buffer.concat([a, c], 3));