I have problems with .stringify()
, but I think my JavaScript array must be wrong, here\'s my code:
var questions = new Array();
$(\'#Valid\').hover
Replace questions[i]=new Array();
with questions[i] = {};
(or = new Object();
if you really want this "ugly" syntax).
Arrays in JavaScript are like arrays in languages like C: They only support integer indexes in the interval [0, array.length)
.
For associative arrays, you use objects which are created using the object literal {}
.