const marks = {
harry: 98,
rohan: 70,
aakash: 7
};
for (let key in marks)
console.log(key, marks[key]);
/*
Output:
harry 98
rohan 70
aakash 7
*/
const marks = {
harry: 98,
rohan: 70,
aakash: 7
};
for (let key in marks)
console.log(key, marks[key]);
/*
Output:
harry 98
rohan 70
aakash 7
*/