const dec = new TextDecoder('utf-8', { fatal: true })
// throws on invalid UTF-8 sequencesPass { fatal: true } to make decode() throw on invalid byte sequences.
Decoding the encoded bytes of 'abc' should give a string of length 3.
Challenge: Verify that decode(encode('abc')).length === 3.