I encounter a Range Error when trying to run my code,
//earlier in the file
var yesArray = ["dummy"];
var numyesVote;
numyesVote = JSON.parse(localStorage.getItem("yesArray"));
//The error takes place here
numyesVote.length = numyesVote;
I'm unsure of how anything could be creating a negative, or massive number. Could it be becoming undefined? (my original declarations for the variables take place in if statements)
localStorage.setItem("yesArray", JSON.stringify(yesArray))