const f = new File(['hi'], 'test.txt')
f.size // β 2size returns the number of bytes in the file content.
Pass { type } as the third argument to set the MIME type, just like Blob.
Challenge: Verify that new File(['x'], 'f.txt', { type: 'text/plain' }).type === 'text/plain'.