Javascript Tips, Front End Development, Webdesign And Development, Programming, JavaScript.
[].toString() == ""; "" == ""; // true 4. Convert to Number (== loves Number) If x is of type Number, then convert y to Number by wrapping y in a Number function call, and then compare the result. If y is of type Number, then convert x to Number by wrapping x in a Number function call, and then