Created
June 28, 2017 06:00
-
-
Save lucasm-iRonin/fee3af8057a114f51ac0992a18b651d0 to your computer and use it in GitHub Desktop.
What will be printed by the last line (`puts` method), please explain the result:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def change_string(str) | |
str << "bbb" | |
str << "ccc" | |
str = "ddd" | |
end | |
test = "aaa" | |
change_string(test) | |
puts test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment