mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-13 16:39:33 +08:00
fix(curriculum): update note in authors project (#59045)
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ The `.catch()` method is another asynchronous JavaScript method you can use to h
|
||||
|
||||
Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` as the parameter. Inside the callback, use `console.error()` to log possible errors to the console with the text `There was an error: ${err}`. Since you're using `err` in the text, don't forget to use a template literal string with backticks (\`\`) instead of single or double quotes.
|
||||
|
||||
**Note**: Now you can terminate your code with a semicolon. You couldn't do that in the previous steps because you'll signal to JavaScript to stop parsing your code, which will affect the `fetch()` syntax.
|
||||
**Note**: `catch` is the last call chained on to fetch, so you can terminate your code with a semicolon.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ The `.catch()` method is another asynchronous JavaScript method you can use to h
|
||||
|
||||
Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` as the parameter. Inside the callback, use `console.error()` to log possible errors to the console with the text `There was an error: ${err}`. Since you're using `err` in the text, don't forget to use a template literal string with backticks (\`\`) instead of single or double quotes.
|
||||
|
||||
**Note**: Now you can terminate your code with a semicolon. You couldn't do that in the previous steps because you'll signal to JavaScript to stop parsing your code, which will affect the `fetch()` syntax.
|
||||
**Note**: `catch` is the last call chained on to fetch, so you can terminate your code with a semicolon.
|
||||
|
||||
# --before-all--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user