JavaaScript localStorage Get Number, pas String

if (localStorage.getItem("score") !== null) {
    score = Number(localStorage.getItem("score"));
}
Eager Earthworm