script.js
// function to initialize high scores data
function to initialize high scores data
function to initialize high scores data
function init() {
  var storedScores = JSON.parse(localStorage.getItem("storedScores"));
  if (storedScores) {
    highscoresArray = storedScores;
  }
}
function init ( ) { var storedScores = JSON . parse ( localStorage . getItem ( "storedScores" ) ) ; if ( storedScores ) { highscoresArray = storedScores ; } }
function to initialize high scores data
function to initialize high scores data