fix(curriculum): proposed fix for some issues found in source files (#50539)

This commit is contained in:
DanielRosa74
2023-05-28 04:21:35 -03:00
committed by GitHub
parent f1a11672cc
commit 45db398f89
4 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ We defined the variable `food` in the loop head and this variable was set to eac
# --instructions--
We've defined a function `countOnline` which accepts one argument, `allUsers`. Use a <dfn>for...in</dfn> statement inside this function to loop through the `allUsers` object and return the number of users whose online property is set to `true`. An example of an object which could be passed to `countOnline` is shown below. Each user will have an `online` property set to either `true` or `false`.
We've defined a function `countOnline` which accepts one argument, `allUsers`. Use a <dfn>for...in</dfn> statement inside this function to loop through the `allUsers` object and return the number of users whose `online` property is set to `true`. An example of an object which could be passed to `countOnline` is shown below. Each user will have an `online` property set to either `true` or `false`.
```js
{