Question: Create a JSON object that stores userID and password. When the user tries to login, the program should check the credentials if it exists. The

Create a JSON object that stores userID and password. When the user tries to login, the program should check the credentials if it exists. The program should display an alert box for the following scenarios: 1- If the user's ID or password is incorrect, an alert box should be displayed with a message, "Incorrect credentials" 2- If both credentials are correct, an alert box should be displayed with a message, "Correct credentials

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