Vidyalelo
JavaScript · Q25

Parsing, Benchmarking And Logging

Programming · JavaScript · question 25

Q25

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

A.
text
B.
reviver
C.
both text and reviver
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
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.