Answer the question
In order to leave comments, you need to log in
Is there a case where "==" is better than "==="?
I will clarify: a practically significant case. It is easy to artificially set a task in which "==" will be more concise, but I am interested in exactly something that will benefit the national economy.
PS Saving one character is not taken into account.
Answer the question
In order to leave comments, you need to log in
I use only for:
if (a == null) {
// код
}
if ($('input').val() == false) alert('Введите непустое значение'); // not null, 0, ''
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question