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 emphasize(msg) | |
msg + "!" | |
end | |
puts emphasize("My brain hurts") | |
puts emphasize("But this is pretty cool") | |
puts emphasize("I'll get the hang of it") | |
# custom_greeting method. Input 1: greeting - string. Input 2: a person's name - String example input: "Hi" and "Enrique" |
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
#First little program - gets.chomp! | |
puts "Hello, World!" | |
person = 1 | |
p person | |
angela = "Angela" | |
puts "Hi #{angela}!" | |
name = "Jennifer" | |
puts "Hi, my name is #{name}!" |