Problem 12. Write a program to print the marks of a student in an object using for...in loop: obj = {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
*/