Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What are the parameters of the method JSON.parse()?

  2. A.

     text

    B.

     reviver

    C.

     both text and reviver

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The parameters of the method JSON.parse() are :
    1. text : The string to parse as JSON. 2. reviver : If a function, prescribes how the value originally produced by parsing is transformed, before being returned.


Be The First To Comment