Skip to content

it-tinyangel/JS-basics-while-loop-password-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Module 2. JS Programming Basics. Lesson 4. Task 1*. The "while" loop using

Password verification

Password and 4 attempts. Execution through while or do while.

  1. Asking the user to enter a password.

  2. If the password is incorrect, he receives a message that there are 4 attempts left:

    • if subsequent incorrect passwords decrease, attempts decrease;
    • when there are no more attempts, a message is displayed: "Please try again later.";
  3. If the user entered the correct password immediately or after several attempts, he receives the message "Welcome to the site!".

  4. Execution without interruptions and reductions.

About

Module 2. JS Programming Basics. Lesson 4. Task 1*. Password verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published