if(x == "")
=== do not try to coerce the type of the variables you are testing, while
== will do its best to 'typecast' those variables if needed to compare them.
1 == '1' returns
1 === '1' returns
false since you are comparing a number to a string.
== operators. Hence, there will not be any difference between the two.
The MDN documentation is pretty good too.