Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <script src="https://code.jquery.com/jquery-3.1.0.js"></script>
  <title>JS Bin</title>
</head>
<body>
  <h2>My Bookshelf</h2>
  <script>
    $.ajax({type: "GET",
      url: "https://api.myjson.com/bins/wgonb",
      dataType: "json",
      success: function(response) { 
        var books = response.books;
        for (var i = 0; i < books.length; i++) { 
          var book = books[i];
          var p = $('<p>');
          p.html(book.title + ' by ' + book.author);
          $('body').append(p);
        }
      },
      error: function(xhr, status, e) {
        console.log(status, e);
      }
    });
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
hyendlerpro
0viewers