Answer the question
In order to leave comments, you need to log in
Why doesn't the condition work?
I can't figure out why it doesn't work
var name = prompt("Введите ваше имя", "");
if (name != null) {
alert(name);
}
else
{
alert("Вы не ввели имя!");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question