← Back to archive

Stdle #90 · mutability · 2026-09-04

What does this Ruby snippet output?

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

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

Answer & explanation