medium10 pts · first answer countsnodejsapi-designdebugging
A 64-bit id changes after parsing
An upstream service sends a 64-bit numeric id. What does this Node.js code print?
const body = '{"id": 9007199254740993}'
console.log(JSON.parse(body).id)An upstream service sends a 64-bit numeric id. What does this Node.js code print?
const body = '{"id": 9007199254740993}'
console.log(JSON.parse(body).id)