Review the TypeScript file
src/wordCountCalculator.ts and it’s corresponding tests
The following article accompanies this repo.
Screenshot of word count example webpage
This repo contains two branches so the code can be checked out before and after adding TypeScript support.