JS Built-ins
Filebeginner

File β€” instanceof File

πŸ“– Usage Example
const f = new File(['content'], 'doc.txt', { lastModified: Date.now() })
f.lastModified  // β†’ current timestamp

lastModified stores when the file was last modified as a Unix timestamp.

File instanceof

new File(['x'], 'f.txt') instanceof File is true.

Challenge: Verify the instanceof check for File itself.

πŸ’‘ Hints (1)
  • β€’ File is its own class and also a subclass of Blob.