Small Javascript program for practicing TDD
To run use:
npm run test
- return true if 2 words have the same word count
- return false if one of the words have more letters
- return false if one of the words have more letters
- return false if the words have the same letters but different counts
- ignore case of the words when comparing
- ignore all whitespaces from 2 words
- returns an empty when passed an empty string
- return the correct letter count for a word with on of each letter
- return the correct letter count for words with more than one of the same letter