Question 10
Back to Exercise
Which property is omitted by JSON.stringify({ a: 1, b: undefined, c: null, d: "x" })?
- A c
- B a
- C b Correct
- D d
Correct Answer: Option C
Properties whose value is undefined (or a function or symbol) are skipped. null is valid JSON and is kept.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!