Possible Duplicate:
Javascript === vs == : Does it matter which “equal” operator I use?
whats does the ===
mean when working with jquery/javascript? and whats the difference between ===
and ==
?
like i got this code
if ($this.val() != '' || ignore_empty === true) {
var result = validateForm($this);
if (result != 'skip') {
if (validateForm($this)) {
$input_container.removeClass('error').addClass('success');
}
else {
$input_container.removeClass('success').addClass('error');
}
}
}
and there is the ===
i just want to understand what it does and whats the difference. thanks