mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-21 19:00:54 -04:00
fix(curriculum): delete duplicate words (#58199)
This commit is contained in:
@@ -9,7 +9,7 @@ dashedName: step-11
|
||||
|
||||
Within your new function, you need to filter the instruments depending on the selected category.
|
||||
|
||||
Filter out items from `instrumentsArr` and make your function return an array containing the instrument objects with the the same category of `instrumentCategory`. If `instrumentCategory` is equal to `all`, return the whole `instrumentsArr` array.
|
||||
Filter out items from `instrumentsArr` and make your function return an array containing the instrument objects with the same category of `instrumentCategory`. If `instrumentCategory` is equal to `all`, return the whole `instrumentsArr` array.
|
||||
|
||||
Then, remove the `console.log` from the callback of your event listener and log the result of calling `instrumentCards` with the selected option from the dropdown menu as argument so you can test your function selecting different category options.
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Now it is time to test your `getVowelCount` function.
|
||||
|
||||
Create a `vowelCount` variable and assign it the result of calling the `getVowelCount` function with the argument of `"Apples are tasty fruits"`
|
||||
|
||||
After that, log the following to the console: `"Vowel Count: [vowel count goes here]"`. Replace `[vowel count goes here]` with the the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
After that, log the following to the console: `"Vowel Count: [vowel count goes here]"`. Replace `[vowel count goes here]` with the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Now it is time to test your `getConsonantCount` function.
|
||||
|
||||
Create a `consonantCount` variable and assign it the result of calling the `getConsonantCount` function with the argument of `"Coding is fun"`
|
||||
|
||||
After that, log the following to the console: `"Consonant Count: [Consonant count goes here]"`. Replace `[Consonant count goes here]` with the the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
After that, log the following to the console: `"Consonant Count: [Consonant count goes here]"`. Replace `[Consonant count goes here]` with the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Now it is time to test your `getPunctuationCount` function.
|
||||
|
||||
Create a `punctuationCount` variable and assign it the result of calling the `getPunctuationCount` function with the argument of `"WHAT?!?!?!?!?"`
|
||||
|
||||
After that, log the following to the console: `"Punctuation Count: [Punctuation count goes here]"`. Replace `[Punctuation count goes here]` with the the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
After that, log the following to the console: `"Punctuation Count: [Punctuation count goes here]"`. Replace `[Punctuation count goes here]` with the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -27,7 +27,7 @@ Your `punctuationCount` variable should be set to the result of `getPunctuationC
|
||||
assert.equal(punctuationCount, getPunctuationCount("WHAT?!?!?!?!?"));
|
||||
```
|
||||
|
||||
You should log the following to the console: `"Punctuation Count: [Punctuation count goes here]"`. Replace `[Punctuation count goes here]` with the the actual variable name. Make sure to use proper string concatenation syntax here.
|
||||
You should log the following to the console: `"Punctuation Count: [Punctuation count goes here]"`. Replace `[Punctuation count goes here]` with the actual variable name. Make sure to use proper string concatenation syntax here.
|
||||
|
||||
```js
|
||||
assert.match(code, /console\.log\((?:('|"|`)Punctuation\s+Count:\s+('|"|`)\s+\+\s+punctuationCount|`Punctuation\s+Count:\s+\${punctuationCount}`)\);?/)
|
||||
|
||||
@@ -9,7 +9,7 @@ dashedName: step-8
|
||||
|
||||
Test your `getWordCount` by creating a `wordCount` variable set to the calling of the `getWordCount` function with the sentence `"I love freeCodeCamp"`.
|
||||
|
||||
After that, log the following to the console: `"Word Count: [Word count goes here]"`. Replace `[Word count goes here]` with the the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
After that, log the following to the console: `"Word Count: [Word count goes here]"`. Replace `[Word count goes here]` with the actual variable name. You can choose to use template strings or string concatenation with the `+` operator here.
|
||||
|
||||
With that, your sentence analyzer project is done!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user