Write Your JavaScript Code Here

// entries(): return a array of given object's own enumberable values property[key:value] pairs. const obj = { 10: 'harry', 21: 'barry', 23: 'carry' }; // assign value to an Array const val=Object.entries(obj); console.log(val); console.log(Object.entries(obj));

Output: