mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 23:01:57 -04:00
fix(curriculum): update note in authors project (#59045)
This commit is contained in:
committed by
GitHub
parent
80518b969a
commit
56f9910b0a
@@ -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--
|
||||
|
||||
|
||||
@@ -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