Modify to sort the names in alphabetical order before displaying them by using the sort method of the Array object. Then, continue modification to prompt for exactly ten names. What happens if you click the Cancel button instead of entering a name?

Modify to sort the names in alphabetical order before displaying them by using the sort method of the Array object Then continue modification to prompt for exac class=