function commentCount(feedUrl){
var feed = new google.feeds.Feed(feedUrl);
var count;
feed.load(function(result) {
count = result.feed.entries.length;
return count;
});
return count;
}
I would like the commentCount function to return a value, which is the variable count, however I couldn’t get it done, the function returns “undefined” everytime.
Is there any workaround on this? Any help would be appreciated~~:lol: