JS Built-ins
Blobbeginner

Blob.size β€” multi-part ['foo','bar']

πŸ“– Usage Example
const b = new Blob(['hi'], { type: 'text/html' })
b.type  // β†’ 'text/html'

type returns the MIME type of the Blob, or empty string if not specified.

Blob size With Multiple Parts

new Blob(['foo', 'bar']).size equals 6 because 'foo' (3 bytes) + 'bar' (3 bytes) = 6 bytes total.

Challenge: Verify new Blob(['foo', 'bar']).size === 6.

πŸ’‘ Hints (1)
  • β€’ Blob concatenates all parts; size is the total byte count.