diff --git a/index.js b/index.js index 0dadcf5..c40e4d9 100644 --- a/index.js +++ b/index.js @@ -169,7 +169,7 @@ function answerCheck(n) { { var user = JSON.parse(localStorage.getItem("studData")); user.score += 1; - localStorage.setItem("studData", JSON.stringify(studData)); + localStorage.setItem("studData", JSON.stringify(user)); } nextQ(); }