JS Built-ins
Blobbeginner

Blob β€” empty blob size

πŸ“– Usage Example
const b = new Blob([JSON.stringify({ x: 1 })], { type: 'application/json' })
b.size  // β†’ 7

Use Blob to package serialized data with a MIME type for upload or download.

Empty Blob

new Blob([]).size equals 0 because there are no parts.

Challenge: Verify that new Blob([]).size === 0.

πŸ’‘ Hints (1)
  • β€’ An empty parts array produces a zero-byte Blob.