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
parent
995b6ad1c6
commit
d5d0584f00
|
@ -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*\)/);
|
||||
|
|
Loading…
Reference in New Issue