I've been working on a website when I had a javascript problem I made an empty array and then added the following script.
while(e<=f){
array[0]=array[0]+x.charAt(e);
e++;
console.log(array[0]);
}
I get the same value that I want but the word "undefined" with it