Question: Q 4 . Backend Debugging Question [ PLO S 1 / CLO 2 . 3 / SO 2 ] [ 6 points ] Question Please

Q 4. Backend Debugging Question [PLO S1/CLO 2.3/SO 2]
[6 points]
Question
Please review the provided JavaScript code. The purpose of this code is to process a user registration submission. It will read the information submitted from the form and do the following:
Setup static routing so that the page index.html is the first page to be displayed to the user when visiting the root URL and the port 8000.
Process form submission properly to read user input, validate it, and store in the database. - First: Setup HTML routing properly.
Second: Read user input submitted from the form properly.
Third: Check if usemame and password were submitted or not (usemame AND password must at least contain a single character)
Fourth: Create a new account with the specified username and password and store it in the database name "finalexam", table name "user", and as per the column names shown in the table schema below.
Fifth: Reply to the user with "Account created" if user data passed validation.
Sixth: Reply to the user with "Please complete the form" if the user data did NOT pass validation.
Welcome to the CCSW-321 Class Page!
Kindly fill the information below to register:
Usemamt
Password:
Rogister
= "viewport" content = "width=device-width, initial-scale=1.0"|>
head>
body>
(:p:)(:p:)= "I">Username: div>
>
label for ="'> Password:||>>>||> div >
g12= "I">Username: div>
>
label for ="'> Password:||>>>||> div >
g12>
label for ="'> Password:||>>>||> div >
g12
 Q 4. Backend Debugging Question [PLO S1/CLO 2.3/SO 2] [6 points]

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!