Adding comments to Blog app!

trying to add comment to my blog app by retrieving the key from each blog but am getting errors…
Any ideas please!!
var postSnapshot = snapshot.child(“posts”);
snapshot.forEach(function(postSnapshot) {
var key = postSnapshot.key();
console.log(key);
});
});