feat(curriculum): add log with function call to challenge (#44195)

* fix (Curriculum) Added a log statement

Added a log statement to the seed's content, referencing the function countOnline with a sample object as argument.
The user should be able to see the result of the function printed out on the console as soon as it is ran, and it should be easier to understand what is being outputed by the function in this challenge.

* Added examper users object
This commit is contained in:
HiddenOgre28
2022-01-07 06:07:02 -03:00
committed by GitHub
parent 08ad03e051
commit 5ffcd0f284

View File

@ -116,11 +116,25 @@ const usersObj3 = {
## --seed-contents--
```js
const users = {
Alan: {
online: false
},
Jeff: {
online: true
},
Sarah: {
online: false
}
}
function countOnline(usersObj) {
// Only change code below this line
// Only change code above this line
}
console.log(countOnline(users));
```
# --solutions--