access hacker news json firebase api via jquery

Just a getJSON JQuery Request that will console log all of the hacker news top stories using the firebase api

$.getJSON('', function(json) {
var requests = [];

for (var i = 0; i < 10; i++) {
  requests.push($.getJSON('' + json[i] + '.json'));

$.when.apply($, requests).done(function() {
  var results = [];
  var list = {
    return '<li><a href="' + arr[0].url + '">' + arr[0].title + '</a></li>';
  var convoText = '<ol>' + list.join('') + '</ol>';

Other Items in js
Page Views

This page has been viewed 198 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
1. Show your work to the world instead of keeping in your head💆. 2. Do the work consistently👌 3. Respect your work🥰 4. Don't postpone your work 5. Make mistakes 🔥🔥🔥