A

Admin • 828.03K Points
Coach

Q. Which method is used to convert an object to a JSON string?

  • (A) JSON.stringify()
  • (B) JSON.parse()
  • (C) toString()
  • (D) convertToJson()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
JSON.stringify() converts a JavaScript object to a JSON string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.