ga-wdi-exercises / project1

[project] GA- Project 1
3 stars 75 forks source link

Issues looping through array #248

Closed zanehmw closed 8 years ago

zanehmw commented 8 years ago

I am having trouble with my code. My deck of cards are in an array but when click next card once at the last card in the deck I get an error message. Same for when I hit the previous card button while at the beginning of the array. Is there a way to loop through the array so that once I hit the end of the array it will automatically go to the beginning of the array again?

andrewsunglaekim commented 8 years ago

I'd have to look at the code and how you are implementing it. Sounds like you have to reset the variable thats accessing your array of objects.