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

What are the parameters of the method JSON.parse()?
A. text
B. reviver
C. both text and reviver
D. object
 
Answer: c
Explanation: The JSON.parse() method can optionally transform the result with a function. The parameters of the method JSON.parse() are :
text : The string to parse as JSON.
reviver : If a function, prescribes how the value originally produced by parsing is transformed, before being returned.
 

Tìm kiếm

Back
Top