JS Built-ins
Fileintermediate

File β€” instanceof Blob

πŸ“– Usage Example
const f = new File([''], 'empty.txt')
f instanceof Blob  // β†’ true

File extends Blob and inherits all Blob methods like text() and arrayBuffer().

File Extends Blob

File is a subclass of Blob. Therefore new File(['x'], 'f.txt') instanceof Blob is true.

Challenge: Verify the Blob inheritance.

πŸ’‘ Hints (1)
  • β€’ File inherits size, type, and slice from Blob.