var hash = {a: 1, b: 2, c: 3}; for (var i in hash) if (hash.hasOwnProperty(i)) alert(i + ': ' + hash[i]);