What will be the output of the following code?
const data = '{"employees":[{"firstName":"John","lastName":"Doe"},{"firstName":"Jane","lastName":"Smith"}]}';
const obj = JSON.parse(data);
console.log(obj.employees.length);
What will be the output of the following code?
const data = '{"employees":[{"firstName":"John","lastName":"Doe"},{"firstName":"Jane","lastName":"Smith"}]}';
const obj = JSON.parse(data);
console.log(obj.employees.length);