here is my code:
function employee(rex1){
const rex = {...rex1}.map((key , value)=>{
return `${key} : ${value}`
})
return `your result is ${rex.join(',')}`
}
console.log(employee({name : 'ahmed' , age : 20})
and it get error as below:
Uncaught TypeError: {(intermediate value)}.map is not a function