daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 17th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var x = '23b';
  2. var y = '23a';
  3.    
  4. if (Number(x) == Number(y))
  5.    
  6. if (parseInt(x, 10) == parseInt(y, 10))
  7.    
  8. var x = '23b';
  9. var y = '23a';
  10. if(isNAN(x) && isNAN(y))
  11. alert("both are NAN");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top