1.

Which of the following does not serialize the undefined values or objects within an object?(a) JSON.string(b) JSON(c) JSON.stringify(d) JSON.change()The question was posed to me by my school teacher while I was bunking the class.My question is taken from Integrating the Performance Object with perfLogger topic in section Invocation and Performance Navigation of JavaScript

Answer»

The correct answer is (c) JSON.stringify

Best EXPLANATION: JSON.stringify does not SERIALIZE undefined values or FUNCTIONS within an object. JSON.stringify() converts a JavaScript object into a string.



Discussion

No Comment Found

Related InterviewSolutions