Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started