Question 24
Consider the following JavaScript program:
const user = { name: 'Alice', age: 25, city: 'Boston', country: 'USA'};
const { name, city, ...otherInfo } = user;const newUser = { name, location: city, ...otherInfo };
console.log(name);console.log(otherInfo);console.log(newUser);What will be the output of the above program?