Question: a function generateUsernames(names). The function takes one argument: names - an array of Strings with full names in the form First Last. The generateUsernames function

a function generateUsernames(names). The function takes one argument: names - an array of Strings with full names in the form "First Last". The generateUsernames function takes each name in the names Array and creates a username using the first letter of the first name, and the first 3 letters of the last name. It returns a new Array of Strings. For example, generateUsernames(['Jill Bruce', 'Karl Jungden', 'Kim Leland']) would return ['jbru', 'kjun' 'klel']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!