SyntaxFix
Write A Post
Hire A Developer
Questions
var obj = {name: 'Krishna', gender: 'male'}; angular.forEach(obj, function(value, key) { console.log(key + ': ' + value); });
yields the attributes of obj with their respective values:
obj
name: Krishna gender: male