Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Identify the process done in the below code snippet

    o = {x:1, y:{z:[false,null,""]}};

    s = JSON.stringify(o);

    p = JSON.parse(s);

  2. A.

     Object Encapsulation

    B.

     Object Serialization

    C.

     Object Abstraction

    D.

     Object Encoding

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment