const dec = new TextDecoder()
const ab = new ArrayBuffer(3)
new Uint8Array(ab).set([65, 66, 67])
dec.decode(ab) // β 'ABC'decode() can also accept an ArrayBuffer directly.
The Euro sign 'β¬' encodes as 3 bytes in UTF-8. Decoding those bytes recovers the original character.
Challenge: Verify the round-trip for 'β¬'.