Q. What kind of an exception will be thrown if the string to parse is not valid JSON?
β
Correct Answer: (A)
SyntaxError
Explanation: The method JSON.parse()throws a SyntaxError exception if the string to parse is not valid JSON.