What will the following code output?
const obj = { name: "Ajay", age: 25 }; console.log(JSON.stringify(obj));
undefined
{ name: "Ajay", age: 25 }
'{"name":"Ajay","age":25}'
Error
This question is part of this quiz :