Created
September 27, 2016 08:56
-
-
Save themonster2015/a8b6bddfae199c9fed3a83057ae20c23 to your computer and use it in GitHub Desktop.
This file contains 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 greeting | |
puts "Your name:" | |
name = gets.chomp | |
puts "Hello" + " " + name | |
end | |
greeting | |
variable is used to store values in the memory, method is a function, argument is variable that we give a method | |
"2" + "2" doesn't give you 4 in Ruby because they are strings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment