Javascript – Why I get undefined? I need help. Thank you
const users = { user1: 18273, user2: 92833, user3: 90315 } //Answer const usersArray = Object.entries(users).map((keys, value)=> {return keys[0] + ' ' + value[1]}); console.log(usersArray); //OUTPUT: ['user1 undefined', 'user2 undefined', 'user3 undefined'] I expect it to be like this: […