-
Completed at: 2023-07-06T22:21:43.958Z
-
Completed languages: java
-
Tags: Fundamentals, Strings
-
Rank: 8 kyu
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' |