JS Built-ins
Blobbeginner

Blob.slice β€” returns Blob instance

πŸ“– Usage Example
const b = new Blob(['ABCDEF'])
b.slice(2, 4).size  // β†’ 2

The slice is a copy; modifying one Blob does not affect the other.

Blob.slice() Returns Blob

blob.slice() returns a new Blob instance, not just a plain object.

Challenge: Verify that new Blob(['hello']).slice(0, 3) instanceof Blob.

πŸ’‘ Hints (1)
  • β€’ Blob.slice always returns a new Blob object.