javascript

profilehtaty

 

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.9 Function: e_names

    Parameter: An array of names, represented as string.

    Returns : the number of names in the given array that ens in either "ie" or "y".

 

 

 

4.10 Function: first_vowel

    Parameter: A string.

    Returns : the position in the string of the leftmost vowel.

    • 9 years ago
    • 10
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      homework.html