← Back to archive

Stdle #40 · mutability · 2026-07-16

What does this Ruby snippet output?

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

a = "hi"
b = a
b << "!"
puts a
Mutability
4 attempts left

Answer & explanation