исправил ошибку в такске 3

parent cedae4f9
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
const userAnswerPass = prompt('Введите ваш пароль:') const userAnswerPass = prompt('Введите ваш пароль:')
if(userAnswerPass === null) {
alert('Login canceled')
} else {
if(userAnswerPass !== systemUserPass) { if(userAnswerPass !== systemUserPass) {
alert('Wrong Password!') alert('Wrong Password!')
} else { } else {
alert('Welcome') alert('Welcome')
} }
} }
}
} }
......
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