We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ce339 commit 59c271eCopy full SHA for 59c271e
solutions/solutons-test-5/index.html
@@ -510,8 +510,9 @@ <h1>JavaScript Test: 5</h1>
510
return commonWords;
511
};
512
console.log(checkSimilarity(michelleWords, melinaWords));
513
- console.log(Math.round(100 * 160 / melinaWords.length)); // the similarity between the speech is so high
514
- console.log(Math.round(100* 160 / michelleWords.length));
+ const commonWords = checkSimilarity(michelleWords, melinaWords).length;
+ console.log(Math.round(100 * commonWords / melinaWords.length)); // the similarity between the speech is so high
515
+ console.log(Math.round(100* commonWords / michelleWords.length));
516
</script>
517
</body>
518
</html>
0 commit comments