if (localStorage.getItem("userTotal") === null) {
localStorage.setItem('userTotal', 3700);
}
This if statement checks if storage with a name of userTotal is empty (null), then if it is we assign a value of 3700. I looked in internet explorer 11 console and it gives me this error "Unable to get property 'getItem' of undefined or null reference". What could be the problem.