macrusso / top-three-words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Top three most frequent words

Function finds top three (or less) most frequent words in provided string of text.

Matches are case-insensitive, and the words in the result are lowercased.

Start

In index.js change string to the required one and then run:

$ npm run start

Test

There are four tests provided for different cases. To run tests type:

$ npm run test

About


Languages

Language:JavaScript 100.0%