MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getHighScore

Function getHighScore

assets/js/block_ninja.js:147–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145
146const highScoreKey = '__menja__highScore';
147const getHighScore = () => {
148 const raw = localStorage.getItem(highScoreKey);
149 return raw ? parseInt(raw, 10) : 0;
150};
151
152let _lastHighscore = getHighScore();
153const setHighScore = score => {

Callers 3

block_ninja.jsFile · 0.85
setHighScoreFunction · 0.85
renderMenusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected