A

Admin • 828.03K Points
Coach

Q. Identify the process done in the below code snippet
o = {x:1, y:{z:[false,null,""]}};
s = JSON.stringify(o);
p = JSON.parse(s);

  • (A) Object Encapsulation
  • (B) Object Serialization
  • (C) Object Abstraction
  • (D) Object Encoding
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Object serialization is the process of converting an object’s state to a string from which it can later be restored.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.