![]() Below is an example of how to take a variable called empName and use the JavaScript Slice method in order to generate an employee’s username. The usernames are the first four letters of the employee’s first name combined with the first four letters of an employees last name. ![]() Scenario: You own a business that requires employees to login with a username and a password.
0 Comments
Leave a Reply. |