What is the purpose of the method JSON.parse()?

What is the purpose of the method JSON.parse()?
A. Parses a string to integer
B. Parses a string to JSON
C. Parses a string from JSON to JSON2
D. Parses integer to string
 
Answer: b
Explanation: The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing. The function parseInt() method parses a string and returns an integer.
 

Tìm kiếm

Back
Top