Skip to content

Commit 68d9443

Browse files
committed
Fixed excerizes translation
1 parent 3b13344 commit 68d9443

File tree

2 files changed

+3
-3
lines changed
  • 1-js/10-error-handling

2 files changed

+3
-3
lines changed

1-js/10-error-handling/1-try-catch/1-finally-or-code-after/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
La differenza diventa ovvia quando inseriamo il codice all'interno di una funzione.
22

3-
The behavior is different if there's a "jump out" of `try...catch`.
3+
Il comportamento è diverso se c'è una "uscita anticipata" dal `try...catch`.
44

5-
For instance, when there's a `return` inside `try...catch`. The `finally` clause works in case of *any* exit from `try...catch`, even via the `return` statement: right after `try...catch` is done, but before the calling code gets the control.
5+
Per esempio, quando c'è un `return` all'interno del `try...catch`. La clausola `finally` funziona *qualunque* sia la lcausa dell'uscita dal `try...catch`, anche tramite l'istruzione "return": appena il `try...catch` è terminato, ma prima che il codice richiamato prenda il controllo.
66

77
```js run
88
function f() {

1-js/10-error-handling/2-custom-errors/1-format-error/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Crea una classe `FormatError` che eredita dalla classe incorporata `SyntaxError`
88

99
Dovrebbe supportare le proprietà `message`, `name` e `stack`.
1010

11-
Usage example:
11+
Esempio di esecuzione:
1212

1313
```js
1414
let err = new FormatError("formatting error");

0 commit comments

Comments
 (0)