Skip to content

Commit eb2e717

Browse files
authored
Update introduction.md
1 parent 692da99 commit eb2e717

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

exercises/practice/error-handling/.docs/introduction.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,14 @@ You will learn how to:
1313
Implement the processString function using a `try…catch` block.
1414

1515
Inside the `try` block:
16-
1716
- If the input is not a string, throw a `TypeError`.
18-
1917
- If the input is an empty string, return `null`.
20-
2118
- If input length is greater than 100, or less than 10, throw a `RangeError`
22-
2319
- If input contains a mix of letters and numbers, throw a `SyntaxError`.
24-
2520
- Otherwise, return the input in `uppercase`.
2621

27-
Don't forget to attach appropriate error messages then you throw! An informative and well structured error message can save you hours of debugging.
22+
*Don't forget to attach appropriate error messages then you throw! An informative and well structured error message can save you hours of debugging.*
23+
2824
Inside the `catch` block:
2925
- log the error's message using `console.log`
30-
- `throw` the `error` so it can be tested for its type.
26+
- `throw` the `error` so it can be tested for its type.

0 commit comments

Comments
 (0)