Advertisement
Guest User

Untitled

a guest
Dec 9th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const profile = 'jeanromero';
  2. const treehouseApi = 'https://teamtreehouse.com/' + profile + '.json';
  3. const scores = [];
  4.  
  5. $.getJSON(treehouseApi, function(profile) {
  6.     let treehouseApi = profile.points;
  7.     console.log(treehouseApi);
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement