mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update given code to match quotation mark mentioned (#56003)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -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*\)/);
|
||||
|
||||
Reference in New Issue
Block a user