LearnFrenzy
Sign in Take a free test

Objects · JavaScript Objects MCQ · Question 10

What JSON.stringify leaves out Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links