1. Home
  2. Computer Science MCQs
  3. Javascript
  4. What is the purpose of the "JSON.parse()" method in…

Added 28 Jan 2024

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

  1. Parsing XML documents
  2. Parsing JSON strings into JavaScript objects Correct answer
  3. Creating JSON strings from JavaScript objects
  4. Concatenating strings

Correct answer

B. Parsing JSON strings into JavaScript objects

16 views

MCQSEXAM

Explanation

"JSON.parse()" is used to convert a JSON-formatted string into a JavaScript object.

Reference

https://www.w3schools.com/js/default.asp

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Javascript MCQs

Practise all Javascript MCQs

Similar MCQs