Question: Q 4 . Backend Debugging Question [ PLO S 1 / CLO 2 . 3 / SO 2 ] [ 6 points ] Question Please
Q Backend Debugging Question PLO SCLO SO
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
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 Class Page!
Kindly fill the information below to register:
Usemamt
Password:
Rogister
"viewport" content "widthdevicewidth, initialscale
head
body
::: "I"Username: div
label for Password: div
"I"Username: div
label for Password: div
label for Password: div
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
