Word Repetition Algorithm In The Sentence This algorithm is written only with JavaScript but with two different methods js: first , second