Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: update the translation of the try-catch statement #21936

Merged
merged 5 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update files/zh-cn/web/javascript/reference/statements/try...catch/in…
…dex.md
  • Loading branch information
yin1999 authored Jul 8, 2024
commit f06d340e305d892ea841c9680ff026d0c0a9a0ff
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ l10n:

{{jsSidebar("Statements")}}

**`try...catch`** 语句由一个 `try` 块和一个 `catch` 块或`finally` 块组成,或者两者皆有。首先执行 `try` 块中的代码,如果它抛出异常,则将执行 `catch` 块中的代码。`finally` 块中的代码将在控制流退出整个结构之前始终被执行。
**`try...catch`** 语句由一个 `try` 块和一个 `catch` 块或 `finally` 块(或两者皆有)组成。首先执行 `try` 块中的代码,如果它抛出异常,则将执行 `catch` 块中的代码。`finally` 块中的代码将在控制流退出整个结构之前始终被执行。

{{EmbedInteractiveExample("pages/js/statement-trycatch.html")}}

Expand Down