Question: 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
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.
Write, test, and debug (if necessary) JavaScript scripts for the problem that above. 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.
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
File namevalidationjs var name lastname firstname middleinitial namepromptEnter your las... View full answer
Get step-by-step solutions from verified subject matter experts
