JS Built-ins
Blobbeginner

Blob.type β€” preserved from options

πŸ“– Usage Example
const b = new Blob(['abc', 'def'])
b.size  // β†’ 6 (concatenated)

Blob concatenates all parts and reports their combined size.

Blob type Persistence

The type passed in the options object is stored on the Blob unchanged.

Challenge: Verify that new Blob(['x'], { type: 'image/png' }).type === 'image/png'.

πŸ’‘ Hints (1)
  • β€’ The type option stores a MIME type string on the Blob.