Skip to content

Commit e032c90

Browse files
fix: update try...catch...finally... lecture multiple choice question (freeCodeCamp#57665)
1 parent 5417217 commit e032c90

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

curriculum/challenges/english/25-front-end-development/lecture-debugging-techniques/6733bee844600f35c05b8264.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,35 @@ Watch the lecture video and answer the questions below.
1414

1515
## --text--
1616

17-
Which of the following is a common use case for `try…catch…finally` in JavaScript?
17+
What best describes the `try` block?
1818

1919
## --answers--
2020

21-
Creating new HTML elements.
21+
It’s for running code again automatically after an error occurs.
2222

2323
### --feedback--
2424

25-
Think about error handling when interacting with external data sources.
25+
Think about the order of blocks in `try…catch…finally` statements, and the types of tasks each block handles.
2626

2727
---
2828

29-
Styling a webpage using CSS.
29+
It’s for handling errors.
3030

3131
### --feedback--
3232

33-
Think about error handling when interacting with external data sources.
33+
Think about the order of blocks in `try…catch…finally` statements, and the types of tasks each block handles.
3434

3535
---
3636

37-
Declaring variables.
37+
It’s for setup before an error is thrown.
3838

3939
### --feedback--
4040

41-
Think about error handling when interacting with external data sources.
41+
Think about the order of blocks in `try…catch…finally` statements, and the types of tasks each block handles.
4242

4343
---
4444

45-
Handling API requests.
45+
It’s a safe wrapper for code that might throw an error.
4646

4747
## --video-solution--
4848

0 commit comments

Comments
 (0)