Question: Have the function UserName(str) take the str parameter being passed and determine if the string is a valid username according to the following rules: 1.

Have the function UserName(str) take the str parameter being passed and determine if the string is a valid username according to the following rules: 1. The username is between 4 and 25 characters. 2. It must start with a letter. 3. It can only contain letters, numbers, and the underscore character. 4. It cannot end with an underscore character. If the username is valid then your program should return the string true, otherwise, return the string false. function UserName(str){ return str; //code in javaScript }

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 Databases Questions!