1 function printObj(obj){ 2 let str = ""; 3 for(let i in obj){ 4 let property=obj[i]; 5 str+=i+" = "+property+" "; 6 } 7 return str; 8 }