It is natively not possible to deal with a 21-digit number in JavaScript.
JavaScript has only one kind of number and it is “number”. parseFloat is equivalent to a parseDouble in Java but it provides only 16 digits of precision and reading 21 digits will lose 5 significant digits.
If you want more precision use the “big number” library.
Want to be a full stack developer? Check out the full stack developer course from Intellipaat.