Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago