const bytes = new TextEncoder().encode('ABC')
new TextDecoder().decode(bytes) // β 'ABC'Use TextEncoder/TextDecoder together to round-trip strings through binary buffers.
encodeInto(source, destination) returns { read, written }.
read: number of UTF-16 code units read from the source stringFor ASCII text, read === written === source.length.
Challenge: Verify encodeInto('hi', new Uint8Array(10)).read === 2.