← Back to archive

Stdle #80 · comparisons · 2026-08-25

What does this Ruby snippet output?

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

a = "hello"
b = "hello"
puts a == b
puts a.eql?(b)
puts a.equal?(b)
Comparisons
3 lines
4 attempts left

Answer & explanation