Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Usability

Authors: Jakob Nielsen, Raluca Budiu

1st Edition

0133122131, 9780133122138

More Books

Students also viewed these Programming questions