fix(curriculum): update given code to match quotation mark mentioned (#56003)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
pull/56032/head
Ilenia 2024-09-06 18:34:35 +02:00 committed by GitHub
parent 995b6ad1c6
commit d5d0584f00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ dashedName: step-48
When your code runs, the `a()` function is added to the call stack first.
In your `callStack` array, add the following string: `"a(): returns 'freeCodeCamp ' + b()"`. This represents the function call and the code that will be executed.
In your `callStack` array, add the following string: `'a(): returns "freeCodeCamp " + b()'`. This represents the function call and the code that will be executed.
Note: Since the string you're adding includes double quotation marks, wrap it in single quotation marks (`'`) or backticks (`).
Note: Since the string you're adding includes double quotation marks (`"`), wrap it in single quotation marks (`'`) or backticks (`` ` ``).
# --hints--
@ -22,7 +22,7 @@ assert.lengthOf(callStack, 1);
assert.isString(callStack[0]);
```
The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + b()"`.
The string in `callStack` should be the string `'a(): returns "freeCodeCamp " + b()'`.
```js
assert.match(callStack[0], /a\(\s*\):\s*returns\s*('|"|`)freeCodeCamp\s*\1\s*\+\s*b\s*\(\s*\)/);