function populate() {
    scoreboard = scoreboard || document.getElementById('scores');
    var html = createHeader();
    for (var i = 0; i < scores.length; i++) {
      html += createRow(scores[i]);
    }
    scoreboard.innerHTML = html;
  }
/**
   * Replaces the contents of the scoreboard with new values
   */
Replaces the contents of the scoreboard with new values
Replaces the contents of the scoreboard with new values
function populate() {
    scoreboard = scoreboard || document.getElementById('scores');
    var html = createHeader();
    for (var i = 0; i < scores.length; i++) {
      html += createRow(scores[i]);
    }
    scoreboard.innerHTML = html;
  }
function populate ( ) { scoreboard = scoreboard || document . getElementById ( 'scores' ) ; var html = createHeader ( ) ; for ( var i = 0 ; i < scores . length ; i ++ ) { html += createRow ( scores [ i ] ) ; } scoreboard . innerHTML = html ; }
Replaces the contents of the scoreboard with new values
Replaces the contents of the scoreboard with new values