Skip to content

Commit 58d72b6

Browse files
authored
Fixed typos (#1381)
Fixed typos
2 parents ea9048e + 6b8ad2b commit 58d72b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/10-error-handling/1-try-catch/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ try {
8585
}
8686
```
8787
88-
The JavaScript engine first reads the code, and then runs it. The errors that occur on the reading phrase are called "parse-time" errors and are unrecoverable (from inside that code). That's because the engine can't understand the code.
88+
The JavaScript engine first reads the code, and then runs it. The errors that occur on the reading phase are called "parse-time" errors and are unrecoverable (from inside that code). That's because the engine can't understand the code.
8989
9090
So, `try..catch` can only handle errors that occur in the valid code. Such errors are called "runtime errors" or, sometimes, "exceptions".
9191
````
@@ -522,7 +522,7 @@ alert(result || "error occurred");
522522
alert( `execution took ${diff}ms` );
523523
```
524524
525-
You can check by running the code with entering `35` into `prompt` -- it executes normally, `finally` after `try`. And then enter `-1` -- there will be an immediate error, an the execution will take `0ms`. Both measurements are done correctly.
525+
You can check by running the code with entering `35` into `prompt` -- it executes normally, `finally` after `try`. And then enter `-1` -- there will be an immediate error, and the execution will take `0ms`. Both measurements are done correctly.
526526
527527
In other words, the function may finish with `return` or `throw`, that doesn't matter. The `finally` clause executes in both cases.
528528

0 commit comments

Comments
 (0)