Full typescript and mvvm implementation #3

Merged
Schmidii99 merged 26 commits from Developer into main 2023-04-23 20:02:32 +02:00
Showing only changes of commit 026f58b3cc - Show all commits

View File

@ -1,4 +1,4 @@
class Stats { export class Stats {
#score; #score;
#highScore; #highScore;
#highScoreStorageKey; #highScoreStorageKey;
@ -20,4 +20,12 @@ class Stats {
localStorage.setItem(this.#highScoreStorageKey, this.#highScore); localStorage.setItem(this.#highScoreStorageKey, this.#highScore);
} }
} }
get highScore() {
return this.#highScore;
}
get score() {
return this.#score;
}
} }