Test case details

Preparation Code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script> if ($.browser.msie) {     var superParseInt = function(a) {         return ~~a;     }; } else {     var superParseInt = function(a) {         a = parseInt(a, 10);         a = isNaN(a) ? 0 : a;     } } </script>
var i = '1561565', j;

Test cases

Test #1

j = ~~i;

Test #2

j = parseInt(i, 10);

Test #3

j = +(i);

Test #4

j = i*1;

Test #5

j = superParseInt(i);