für in Loop JavaScript
var subjects = {
'math': 85,
'physics': 75,
}
for (var i in subjects) {
console.log(i + ' : ' + subjects[i]);
}
// math : 85
// physics : 75
HeyMehedi