Here’s how to show the contents of a object in Javascript function concatObject(obj) { str=”; for(prop in obj) { str+=prop + ” value :”+ obj[prop]+”\n”; } return(str); }
Attention in classroom
Here’s how to show the contents of a object in Javascript function concatObject(obj) { str=”; for(prop in obj) { str+=prop + ” value :”+ obj[prop]+”\n”; } return(str); }