Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started