const enc = new TextEncoder()
enc.encode('A') // β Uint8Array [65]encode() converts a string into a Uint8Array of UTF-8 bytes.
new TextEncoder().encode('') returns a Uint8Array with length === 0.
Challenge: Verify that encoding an empty string gives a zero-length Uint8Array.