Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 516 Bytes

grasshopper_personalized_message.md

File metadata and controls

18 lines (14 loc) · 516 Bytes

Description

Create a function that gives a personalized greeting. This function takes two parameters: name and owner.

Use conditionals to return the proper message:

case return
name equals owner 'Hello boss'
otherwise 'Hello guest'

My Solution

def greet(name,owner)
  name == owner ? 'Hello boss' : 'Hello guest'
end