✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
const userInfo = { name: 'Ivan', login: 'admin', password: 'superuser' };
const userDetails = { surname: 'Kravets', profession: 'developer'};
const userProfile = {...userInfo,...userDetails};