Write a JavaScript program that prompts username and password and then gives five chances to guess the correct username and password. The correct username is admin and the password is admin12345. If the username and password is correct it will display on the screen how many tries user made to guess the correct password otherwise it will display how many tries user have left to guess the correct password.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 12E
icon
Related questions
Question
100%

Code with comments and output screenshot is must. No plagarism plz

Write a JavaScript program that prompts
username and password and then gives
five chances to guess the correct
username and password. The correct
username is admin and the password is
admin12345. If the username and
password is correct it will display on the
screen how many tries user made to
guess the correct password otherwise it
will display how many tries user have left
to guess the correct password.
Transcribed Image Text:Write a JavaScript program that prompts username and password and then gives five chances to guess the correct username and password. The correct username is admin and the password is admin12345. If the username and password is correct it will display on the screen how many tries user made to guess the correct password otherwise it will display how many tries user have left to guess the correct password.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Multimedia tools and applications
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT