Skip to content
RED SAG Skills
hardStudy question · answer published in REST API interview questions, so no pointsjavascriptapi-design

Large IDs change in the browser

The database uses BIGINT ids, and the API serializes them as JSON numbers. What does the client print here?

const body = '{"id": 9007199254740993}'
console.log(JSON.parse(body).id)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions