mediumStudy question · answer published in Node.js interview questions, so no pointsnodejsapi-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)Discussion 0
Join free to post in the discussion.
Related questions
- What a 504 from Nginx meansBackend Developer
- Promise and setTimeout orderBackend Developer
- Python default list surpriseBackend Developer
- Response for a successful DELETEBackend Developer
- A product page removed for goodBackend Developer
- Signing up with a taken usernameBackend Developer
- Calling DELETE on a read-only routeBackend Developer
- A client posts XML to a JSON APIBackend Developer