JS Built-ins
Blobbeginner

Blob.size β€” 10-char ASCII string

πŸ“– Usage Example
const b = new Blob(['hello'])
b.size  // β†’ 5

size returns the number of bytes in the Blob.

Blob size Property

The size property returns the number of bytes in the Blob.

For ASCII strings, each character is one byte, so a 10-character string produces a Blob with size === 10.

Challenge: Verify that new Blob(['0123456789']).size === 10.

πŸ’‘ Hints (1)
  • β€’ ASCII characters take 1 byte each in UTF-8.