{"size": 535, "ext": "js", "max_stars_repo_path": "js/score.js", "max_stars_repo_name": "KKetter/201d56-Final-Project", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/score.js", "max_issues_repo_name": "KKetter/201d56-Final-Project", "max_issues_repo_issues_event_min_datetime": "2019-04-17T19:04:41.000Z", "max_issues_repo_issues_event_max_datetime": "2019-04-18T19:06:12.000Z", "max_forks_repo_path": "js/score.js", "max_forks_repo_name": "KKetter/201d56-Final-Project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 28.1578947368, "max_line_length": 131, "alphanum_fraction": 0.6579439252}
'use strict';
// global variables
var scoreBase = [];

function renderScores(){
  if (localStorage.scores){
    var highScore = JSON.parse(localStorage.scores);
    scoreBase = highScore;
    var targetEl = document.getElementById('highScore');
    for (let i = 0; i < scoreBase.length; i++){
      var liEl = document.createElement('li');
      liEl.innerHTML = `<span id="userDisplay">${scoreBase[i].userName}</span> <div id="scoreDisplay">${scoreBase[i].score}</div>`;
      targetEl.appendChild(liEl);
    }
  }
}

renderScores();
