DEV Community

loading...

Discussion on: Snail Array Challenge Solution JavaScript

Collapse
pavlikovinc profile image
George • Edited

Thx. I used so many loops in my solution at first, but your solution looks good.

But you have a little mistake in the second solution. In line where you finally reverse the whole array it shoud be arr.reverse() instead of array.reverse(). It seems you got a divergence with code from video again) Have a nice day

Collapse
hellodevworldblog profile image
Hello Dev World Blog Author

HAHA! thank you I ad it as array the first time and changed it lol thanks for the catch will update