diff --git a/javascript/asynchronous_javascript_and_apis/async_and_await.md b/javascript/asynchronous_javascript_and_apis/async_and_await.md index 5120e8dddba..eaaa962ce52 100644 --- a/javascript/asynchronous_javascript_and_apis/async_and_await.md +++ b/javascript/asynchronous_javascript_and_apis/async_and_await.md @@ -106,8 +106,7 @@ asyncFunctionCall().catch(err => { console.error(err) }); ``` - -But there is another way: the mighty `try/catch` block! If you want to handle the error directly inside the `async` function, you can use `try/catch` just like you would inside synchronous code. +But there is another way: the mighty [try/catch](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch) block! If you want to handle the error directly inside the async function, you can use `try/catch` with `async/await` syntax. If JavaScript throws an error in the `try` block, the `catch` block code will run instead (this can also be used for synchronous code). ```javascript async function getPersonsInfo(name) {