Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Task
- Write a javascript function which takes the text in the html file and outputs a list with all words from the text and the count of their occurrences, ordered by the occurrences.
- The result is in the `result.html`.
- # Rules
- - Read the rules carefully and act according to them.
- - No external libararies.
- - Please use 2 spaces for indentation, no tabs.
- - Don't pollute the global namespace, don't leak any variables.
- - Send the result as a github gist like this file.
- - Stop immediately after 15 minutes - we don't need, want or honor a working solution, we are interested in your approach.
- - Put your code in the `index.html` file inside the `script` tag in line 58.
- - The code should work on the latest Chrome version.
- - Add a brief description (~ three bullet points) on how you would test your code.
- # My comments on testing
- - unit test which tests regular expressions on correct parsing
- - UI test which tests that the result has been rendereded
Add Comment
Please, Sign In to add comment