Javascript – Looping through an object to display the grades of a student object and the function displays undefined, what could be the reason?
I am doing an online course and practising what I am learning. I just wanted to create a function, that takes an object and loops through an array element of the object using forEach. So I don't want to change…