Question: Write a program in JavaScript that takes a paragraph as an input and displays all the arrays occurring in that paragraph. The output will be

Write a program in JavaScript that takes a paragraph as an input and displays all the arrays occurring in that paragraph.

The output will be the arrays of that paragraph.

The input and output of the program must be displayed on the same HTML page.

There must be a single submit button on screen.

The user should be asked to write a paragraph in the input and only ARRAYS written in paragraph should be displayed in the output of the program.

For Example

INPUT: This a country of five million [1,2,3,4,5], people here are from all origins [2,5,3,8], we should respect each and every race.

OUTPUT: Arrays occurring in the above paragraph are:

[1,2,3,4,5]

[2,5,3,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!