Frontend
Interviews
.dev
Problems
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?
{"n":"1"}
{"n":1}
TypeError
undefined
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer