ABOUT:
Compares two sentences and returns the number of words matched between them.
INSTALL:
$ npm install compare-js
USAGE
const logger = ;const Compare = ;let sentence1 = 'how to create array of objects in javascript';let sentence2 = 'how to create an object Array in Javascript';let wordCount = ;// wordCount will be 6logger;
WORKING
In the above two sentences 'how','to','create','array','in','javascript' are the matching words.so the wordCount is 6.