What error does JSON.parse() throw when the string to parse is not valid JSON?
ReferenceError
EvalError
SyntaxError
TypeError
Correct Answer : C
Which of the following is not a valid way to parse JSON string?
How to get a particular value using the tagged name?
Consider the following code snippet
const pi=3.14; var pi=4; console.log(pi);
What will be the output for the above code snippet?