← Back to archive

Stdle #99 · arrays · 2026-09-13

What does this Ruby snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

a, *b, c = [1, 2, 3, 4, 5]
puts a
puts b.inspect
puts c
Arrays
3 lines
4 attempts left

Answer & explanation