← Back to archive

Stdle #35 · arrays · 2026-07-11

What does puts Array.new(3) { |i| i * 2 }.inspect output?

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

puts Array.new(3) { |i| i * 2 }.inspect
Arrays
4 attempts left

Answer & explanation