Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
JSON
An endpoint requires a JSON object with a string orderId. What must happen after JSON.par…
from JSON
Node 24
beginner
1 min
An endpoint requires a JSON object with a string orderId. What must happen after JSON.parse succeeds?
Check that the result is a non-null, non-array object and that orderId is a string.
Nothing; valid JSON syntax guarantees the endpoint shape.
Call JSON.stringify on the parsed value and compare string lengths.
Check only that typeof result is object.
Check
Ask AI about this kata
Report an error
next kata
What do these two console calls print?
Predict the output
A new version is available
Reload