Which of the following does JSON.stringify not serialize?
A
Undefined values
B
Functions within an object
C
Both Undefined values and Functions within an object
D
Functions outside the object
Correct Answer: Both Undefined values and Functions within an object
JSON.stringify does not serialize undefined values or functions within an object. JSON.stringify() converts a JavaScript object into a string.