mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-01 21:01:20 +08:00
fix(curriculum): inconsistent quotes in decimal to binary converter (#64503)
This commit is contained in:
parent
66c31e1071
commit
14da4015af
@ -9,7 +9,7 @@ dashedName: step-50
|
||||
|
||||
And since `b()` calls `c()`, the function `c()` is added to the call stack.
|
||||
|
||||
Add the following string to your `callStack` array: `"c(): returns 'awesome!'"`.
|
||||
Add the following string to your `callStack` array: `'c(): returns "awesome!"'`.
|
||||
|
||||
# --hints--
|
||||
|
||||
@ -20,7 +20,7 @@ assert.lengthOf(callStack, 3);
|
||||
assert.isTrue(callStack.every((element) => typeof element === "string"));
|
||||
```
|
||||
|
||||
The third element in `callStack` should be the string `"c(): returns 'awesome!'"`.
|
||||
The third element in `callStack` should be the string `'c(): returns "awesome!"'`.
|
||||
|
||||
```js
|
||||
assert.match(
|
||||
|
||||
@ -11,7 +11,7 @@ Your call stack is complete. As you can see, `a()` is at the bottom or beginning
|
||||
|
||||
`c()` executes, returns the string `"awesome!"`, and is popped off or removed from the top of the stack.
|
||||
|
||||
Remove your `"c(): returns 'awesome!'"` string from the top of the `callStack` array.
|
||||
Remove your `'c(): returns "awesome!"'` string from the top of the `callStack` array.
|
||||
|
||||
# --hints--
|
||||
|
||||
@ -22,7 +22,7 @@ assert.lengthOf(callStack, 2);
|
||||
assert.isTrue(callStack.every((element) => typeof element === "string"));
|
||||
```
|
||||
|
||||
The final element in `callStack` should be the string `"b(): returns 'is ' + c()"`.
|
||||
The final element in `callStack` should be the string `'b(): returns "is " + c()'`.
|
||||
|
||||
```js
|
||||
assert.match(
|
||||
|
||||
@ -9,7 +9,7 @@ dashedName: step-52
|
||||
|
||||
Then the function `b()` executes and evaluates to `"is " + "awesome!"`.
|
||||
|
||||
Update your mock call to `b()` so it looks like this: `"b(): returns 'is ' + 'awesome!'"`.
|
||||
Update your mock call to `b()` so it looks like this: `'b(): returns "is " + "awesome!"'`.
|
||||
|
||||
# --hints--
|
||||
|
||||
@ -20,7 +20,7 @@ assert.lengthOf(callStack, 2);
|
||||
assert.isTrue(callStack.every((element) => typeof element === "string"));
|
||||
```
|
||||
|
||||
The final element in `callStack` should be the string `"b(): returns 'is ' + 'awesome!'"`.
|
||||
The final element in `callStack` should be the string `'b(): returns "is " + "awesome!"'`.
|
||||
|
||||
```js
|
||||
assert.match(
|
||||
|
||||
@ -7,7 +7,7 @@ dashedName: step-53
|
||||
|
||||
# --description--
|
||||
|
||||
Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`.
|
||||
Now that `b()` has executed, pop it off the call stack. Then, update your mock call to `a()` to the following: `'a(): returns "freeCodeCamp " + "is awesome!"'`.
|
||||
|
||||
# --hints--
|
||||
|
||||
@ -18,7 +18,7 @@ assert.lengthOf(callStack, 1);
|
||||
assert.isString(callStack[0]);
|
||||
```
|
||||
|
||||
The string in `callStack` should be the string `"a(): returns 'freeCodeCamp ' + 'is awesome!'"`.
|
||||
The string in `callStack` should be the string `'a(): returns "freeCodeCamp " + "is awesome!"'`.
|
||||
|
||||
```js
|
||||
assert.match(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user