Friday 29 November 2019

Text file to array issues

Hello all, I've recently starting to teach myself JS I'm having some issues converting the contents of my text file into an array. Here's my code:​https://preview.redd.it/avq2lezkur141.png?width=1579&format=png&auto=webp&s=497dfbc39c4f65bbe47be865bf7c189144299051My issue is when I go to output the contents of ResultArray. The array contains a blank element no matter what I change in my code block.​When I input \"1\", this is what ResultArray looks likeWhen I input \"2\"When I input \"3\"I've been struggling with this for a while- If you have a solution to my issue, I'm all ears.

Submitted November 30, 2019 at 07:05AM by oldBurnsey

No comments:

Post a Comment