Skip to content

Instantly share code, notes, and snippets.

@TylerPachal
Created September 4, 2020 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TylerPachal/2129e52bd8701061f6908517ce4801b8 to your computer and use it in GitHub Desktop.
Save TylerPachal/2129e52bd8701061f6908517ce4801b8 to your computer and use it in GitHub Desktop.
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