Vidyalelo
JavaScript · Q23

Parsing, Benchmarking And Logging

Programming · JavaScript · question 23

Q23

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

A.
Parses a string to integer
B.
Parses a string to JSON
Answer
C.
Parses a string from JSON to JSON2
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.