// List all entries let text = ""; fruits.forEach (function(value, key) { text += key + ' = ' + value; })