FrontendInterviews.dev

687. Serializing BigInt Values

Easy•

Predict the output.

try {
  console.log(JSON.stringify({ n: 1n }))
} catch (e) {
  console.log(e.name)
}

What is printed in the console?

Select an option and submit your answer.
Next Problem