[JavaScript] BigInt & Sort
The edge case is that the string number might "exceed" the max range of "number", so compare the string by yourself OR use BigInt in JS.\njs\nvar kthLargestNumb
The edge case is that the string number might "exceed" the max range of "number", so **compare the string by yourself OR use BigInt in JS**.\n```js\nvar kthLargestNumber = function(nums, k) {\n     k = nums.length-k;\n     nums.sort((a,b)=>{\n         var n1 = BigInt(a);\n         var n2 = BigInt(b);\n         if(n1>n2)\n         {\n            return 1;\n         }\n         else if(n1<n2)\n         {\n            return -1;\n         }\n         return 0;\n     });\n    return nums[k];\n};\n```
['JavaScript']