So when I am trying to complete this problem on freecodecamp, when I have what I beleive to be the correct answer, it seems to be brekaing chrome! or something the website crashes anyway…
I must have the code wrong… can someone be kind enough to check this out for me and see if it is only my end that is playing up?
Thanks! So the code doesn’t seems to be valid as it doesn’t’ cause any infinite loops, however you are close to the correct answer. Try console logging what myArray gives you, and you should see where the mistake is coming from, I made one code change and got it to pass from your code.
But it looks like I’m having other issues with website itself as now when I type at all it crashes…
I was happening on my computer at work yesterday also… so I will run it in VS and play with it in there for a bit…