MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / getCurrentCount

Function getCurrentCount

client/src/utils/session-storage.ts:7–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5export const SAVED_COUNT_KEY = 'saved-session-completed-challenges';
6
7const getCurrentCount = () =>
8 parseCount(sessionStorage.getItem(CURRENT_COUNT_KEY));
9
10const getSavedCount = () => parseCount(sessionStorage.getItem(SAVED_COUNT_KEY));
11

Callers 3

incrementCurrentCountFunction · 0.85
saveCurrentCountFunction · 0.85
getSessionChallengeDataFunction · 0.85

Calls 1

parseCountFunction · 0.85

Tested by

no test coverage detected