I want to declare an array in Jquery to avoid "undefined"
I declare like this:
var array = [""];
but It applied for first loop only.
In the second loop array[1]
, it returns undefined
.
How can I declare an array to avoid undefined.
Thank for your help.