script.js
//Grabs any other high scores from local storage and displays them in the High Scores Form.
Grabs any other high scores from local storage and displays them in the High Scores Form.
Grabs any other high scores from local storage and displays them in the High Scores Form .
function renderHighScores() {
    highScoresList.innerHTML = "";
    for (var i = 0; i < highScores.length; i++) {
        var currentIndex = highScores[i];
        var li = document.createElement("li");
        li.textContent = currentIndex.initials + ": " + currentIndex.score;
        highScoresList.appendChild(li);
    }
}
function renderHighScores ( ) { highScoresList . innerHTML = "" ; for ( var i = 0 ; i < highScores . length ; i ++ ) { var currentIndex = highScores [ i ] ; var li = document . createElement ( "li" ) ; li . textContent = currentIndex . initials + ": " + currentIndex . score ; highScoresList . appendChild ( li ) ; } }
Grabs any other high scores from local storage and displays them in the High Scores Form.
Grabs any other high scores from local storage and displays them in the High Scores Form .