CodeType
Learn
…
←
Values & References
3 / 16
Up next
Numbers are value-like
def
bump
(
n
) n +=
1
end
x =
5
bump(x)
# the caller still sees 5
puts x
What you're solving
integers cannot be mutated
Explain more ↓
Start typing →