JavaaScript LocalStorage Get Number, bukan String

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