Skip to content

Commit

Permalink
Update exercises/practice/bob/.approaches/introduction.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kah Goh <villastar@yahoo.com.au>
  • Loading branch information
jagdish-15 and kahgoh authored Jan 18, 2025
1 parent f73bf04 commit c43db37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises/practice/bob/.approaches/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class Bob {
}
```

This approach utilizes nested `if` statements and a predicate for determining if a message is a shout. For more details, refer to the [`if` Statements Approach][approach-if].
This approach uses variables to avoid rechecking whether Bob is silent, shouting or questioning.
For more details, refer to the [method-based `if` Statements Approach][approach-method-if].

## Approach: answer array

Expand Down

0 comments on commit c43db37

Please sign in to comment.