Vidyalelo
JavaScript · Q58

Basic And Variables

Programming · JavaScript · question 58

Q58

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
Answer
C.
Object Abstraction
D.
Object Encoding

Answer: Option B

Solution

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