What will be the output of the following code?
const data = '{"persons":[{"name":"John","age":30},{"name":"Jane","age":25}]}';
const obj = JSON.parse(data);
const person = obj.persons[0];
console.log(person.name);
What will be the output of the following code?
const data = '{"persons":[{"name":"John","age":30},{"name":"Jane","age":25}]}';
const obj = JSON.parse(data);
const person = obj.persons[0];
console.log(person.name);