mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): inconsistent logging in final step (#57689)
This commit is contained in:
parent
a5f149647a
commit
4f176f9c4e
@ -13,10 +13,10 @@ And with this last step your grocery list is complete!
|
||||
|
||||
# --hints--
|
||||
|
||||
You should log the `shoppingList` array to the console.
|
||||
You should call the `getShoppingListMsg` function inside of the `console.log`.
|
||||
|
||||
```js
|
||||
assert.match(code, /console\.log\(\s*shoppingList\s*\)/);
|
||||
assert.lengthOf(code.match(/console\.log\(\s*getShoppingListMsg\(\)\s*\)/g), 7);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -112,5 +112,5 @@ console.log("On second thought, maybe we should be more health conscious.");
|
||||
shoppingList.shift();
|
||||
shoppingList[0] = "Canola Oil";
|
||||
|
||||
console.log(shoppingList);
|
||||
console.log(getShoppingListMsg());
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user