Basically I was trying to access the properties of an object in JavaScript and than I thought If i can access the array values present inside the object
// Object
let user={
name:"rajat",
age:23,
email:["ag.112","ag.113"]
};
now for accessing particular elements of an array I am not able to understand how to do this
console.log(user);
console.log(user.name);
console.log(user.age);
console.log(user['age']);
like I want to access the 2nd element present inside the email(ag.113) In JavaScript