Skip to content

Commit 0bf84b5

Browse files
committed
Adding snippet.txt
1 parent 8f2ac6b commit 0bf84b5

File tree

1 file changed

+8
-0
lines changed
  • exercises/practice/bob/.approaches/method-based

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if (isSilent(inputTrimmed))
2+
return "Fine. Be that way!";
3+
if (isYelling(inputTrimmed) && isAsking(inputTrimmed))
4+
return "Calm down, I know what I'm doing!";
5+
if (isYelling(inputTrimmed))
6+
return "Whoa, chill out!";
7+
if (isAsking(inputTrimmed))
8+
return "Sure.";

0 commit comments

Comments
 (0)