I need a VERY Javascript written to break down a sentence into multiple word combinations.
Original Sentence entered into a text field: Sample sentence to be used as an example.
Output Combination displayed into a text area:
Sample, sentence, to, be, used, as, an,
Sample, sentence, to, be, used, as,
Sample, sentence, to, be, used,
Sample, sentence, to, be,
Sample, sentence, to,
Sample, sentence,
sentence, to, be, used, as, an, example,
to, be, used, as, an, example,
be, used, as, an, example,
used, as, an, example,
as, an, example,
an, example,
Sample, sentence, to, be, used, as, an, example,
As you can see each line is a removing a word from the front of rear of the sentence structure.