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

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