add getter comments
add getter comments

--- a/js/local_storage_manager.js
+++ b/js/local_storage_manager.js
@@ -39,6 +39,7 @@
   }
 };
 
+// Best score getters/setters
 LocalStorageManager.prototype.getBestScore = function () {
   return this.storage.getItem(this.bestScoreKey) || 0;
 };
@@ -47,6 +48,7 @@
   this.storage.setItem(this.bestScoreKey, score);
 };
 
+// Game state getters/setters and clearing
 LocalStorageManager.prototype.getGameState = function () {
   var stateJSON = this.storage.getItem(this.gameStateKey);
   return stateJSON ? JSON.parse(stateJSON) : null;

comments