πŸ“Š JavaScript
Q. Identify the process done in the below code snippet
Code:
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Object Serialization

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
152
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
84%
Success Rate