2 ms·
How JS chooses to show the string interpretation of the datatype has nothing to do with whether you can map the type into an abstract JSON number, which you can
by Spivak 8y ago
How JS chooses to show the string interpretation of the datatype has nothing to do with whether you can map the type into an abstract JSON number, which you can.
JSON.stringify(1n) === "1"
JSON.stringify(100000000000000000000n) === "100000000000000000000"