Question: The assignment needs to be in jsfiddle The HTML and Javascript must be separate Write a program that will take the phrase, create bins for

The assignment needs to be in jsfiddle

The HTML and Javascript must be separate

Write a program that will take the phrase, create bins for each word, and then record the instance position of each word in the bin. It will then output each bin (word) and the locations of the word in the phrase. So if the input was;

I want what I want and I know what I want.

The output would be;

I: 1 4 7 10

want: 2 5 11

what: 3 9

and: 6

know: 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!