Created
December 14, 2021 13:01
-
-
Save inspector-ambitious/66ac4fce9739c2631a6902c59c923a1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Step 1: Create a function that will return the number of words in a text | |
| const countWords = (text) => { | |
| } | |
| console.log(countWords("")); | |
| console.log(countWords(" ")); | |
| console.log(countWords("JavaScript!!! ")); | |
| console.log(countWords(" JavaScript")); | |
| console.log(countWords(" JavaScript is cool ")); | |
| console.log(countWords("I like to learn JavaScript with codeguppy")); | |
| // Step 2: Create a function that render the statistics to HTML | |
| const renderCharFrequency = (rootEl) => { | |
| }; | |
| renderCharFrequency(document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment