const bytes = new Uint8Array([240,159,144,136])
new TextDecoder().decode(bytes) // β 'π'TextDecoder correctly handles multi-byte UTF-8 sequences like emoji.
The fatal option controls error handling. By default it is false, meaning invalid bytes are replaced with the replacement character U+FFFD.
Challenge: Verify that new TextDecoder().fatal === false.