Skip to content

Commit 59c271e

Browse files
committed
edited
1 parent 59ce339 commit 59c271e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

solutions/solutons-test-5/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,9 @@ <h1>JavaScript Test: 5</h1>
510510
return commonWords;
511511
};
512512
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));
513+
const commonWords = checkSimilarity(michelleWords, melinaWords).length;
514+
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));
515516
</script>
516517
</body>
517518
</html>

0 commit comments

Comments
 (0)