Question: Write a program to 1) in a user-input loop, ask the user for a word or sentence of words. 2) if user enters nothing then

Write a program to

1) in a user-input loop, ask the user for a word or sentence of words.

2) if user enters nothing then quit/break the loop

3) otherwise:

A) split the user input, creating an array of words

B) create a new empty array

C) for each word:

a) convert the string to lower case (find the string function)

b) push this string to the new array

4) join the new array of words (use spaces not commas as separators) and document.write the result

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!