Created
September 4, 2020 16:20
-
-
Save TylerPachal/2129e52bd8701061f6908517ce4801b8 to your computer and use it in GitHub Desktop.
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 increment(number) do | |
number + 1 | |
end | |
count = 0 | |
# Return the updated value from the function, and use it to | |
# reaassign to our variable. | |
count = increment(count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment