// 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[2]);//print single value
console.log(Object.entries(obj)[0]);//print single value