我遇到错误
未捕获的TypeError:无法读取null的属性“ map”
var highScoresList = document.getElementById("highScoresList");
var highScores = JSON.parse(localStorage.getItem("highScores")) || [];
highScoresList.innerHTML = highScores
.map(score => {
return `<li class="high-score>${score.name}-${score.score}</li>`;
})
.join("");