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

A 4-byte buffer is written with writeUInt32BE(0x12345678, 0). What does readUInt32LE(0) return on that same buffer?

const buf = Buffer.alloc(4); buf.writeUInt32BE(0x12345678, 0); console.log('0x' + buf.readUInt32LE(0).toString(16));