Byte Lab · Level 4 of 5

A tile counts to 255

Two zeroed tiles, then numbers too big and too small to fit.

const buf = Buffer.alloc(2);console.log(buf);buf[0] = 256;buf[1] = 300;console.log(buf[0], buf[1]);buf[0] = -1;console.log(buf[0]);

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…
  3. 3…