mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): proposed fix for some issues found in source files (#50539)
This commit is contained in:
parent
f1a11672cc
commit
45db398f89
@ -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
|
||||
{
|
||||
|
||||
@ -9,7 +9,7 @@ dashedName: step-28
|
||||
|
||||
You may notice there is still a small border at the bottom of your `.large` element. To reset this, give your `.large, .medium` selector a `border` property set to `0`.
|
||||
|
||||
Note: the `medium`(medium) class will be utilized in step 37 for the thinner bars of the nutrition label.
|
||||
Note: the `medium`(medium) class will be utilized later for the thinner bars of the nutrition label.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ dashedName: step-11
|
||||
|
||||
# --description--
|
||||
|
||||
Now it's time to start building the the HTML for the page with your destructured data. You can do this with a combination of the `innerHTML` property, the compound assignment operator (`+=`), and the `innerHTML` property.
|
||||
Now it's time to start building the HTML for the page with your destructured data. You can do this with a combination of the compound assignment operator (`+=`) and the `innerHTML` property.
|
||||
|
||||
Inside your callback function, use the compound assignment operator to append an empty template literal to the `innerHTML` of `authorContainer`.
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ Create an `isSpam` function using the `const` keyword and arrow syntax. The func
|
||||
|
||||
# --hints--
|
||||
|
||||
You should use `const` to delcare an `isSpam` variable.
|
||||
You should use `const` to declare an `isSpam` variable.
|
||||
|
||||
```js
|
||||
assert.match(code, /const\s+isSpam\s*=/);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user