Сделал таск 3

parent 736f8423
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task 3</title>
</head>
<body>
<script>
const systemUser = 'admin'
const systemUserPass = 'BlackOverlord'
const userAnswerLogin = prompt('Введите ваш логин')
if(userAnswerLogin === null || userAnswerLogin === '') {
alert('Login canceled')
} else {
if(userAnswerLogin !== systemUser) {
alert('Unknown user')
} else {
const userAnswerPass = prompt('Введите ваш пароль:')
if(userAnswerPass !== systemUserPass) {
alert('Wrong Password!')
} else {
alert('Welcome')
}
}
}
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment