diff --git a/js/statistics.js b/js/statistics.js index d7aa863..f44c017 100644 --- a/js/statistics.js +++ b/js/statistics.js @@ -1,4 +1,4 @@ -class Stats { +export class Stats { #score; #highScore; #highScoreStorageKey; @@ -20,4 +20,12 @@ class Stats { localStorage.setItem(this.#highScoreStorageKey, this.#highScore); } } + + get highScore() { + return this.#highScore; + } + + get score() { + return this.#score; + } } \ No newline at end of file