Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

...Write, test, and debug (if necessary) JavaScript scripts for the problems that follow. When required to write a function, you must include a script to

...Write, test, and debug (if necessary) JavaScript scripts for the problems that follow. When required to write a function, you must include a script to test the function with at least two different data sets. In all cases, for testing, you must write an HTML file that references the JavaScript file.

4.5 Input : A text string, using prompt . Output : Either "Valid name" or "Invalid name" , depending on whether the input names fit the required format, which is Last name, first name, middle initial where neither of the names can have more than 15 characters.

4.6 Input : A line of text, using prompt . Output : The words of the input text, in alphabetical order.

4.7 Modify the script of Exercise 4.6 to get a second input from the user, which is either "ascending" or "descending" . Use this input to determine how to sort the input words.

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

Step: 3

blur-text-image

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Do we need additional help consultants, facilitators . . .?

Answered: 1 week ago

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago