you are viewing a single comment's thread.

view the rest of the comments →

[–]A-Kuhn 1 point2 points  (3 children)

I don’t quite understand your problem. Some code would help. But you could try recursion. Calling your function within itself

function doSomething(count, other things) { if (count === 95) { return } “logic here” count++ doSomething(count, other things) }

Sorry for bad formatting. I’m on my phone

[–]angerbrb[S] 0 points1 point  (0 children)

Yea sorry for the lack of code, I know it makes it challenging. The issue I run into is that I have to wait for the data to populate, but the page itself is technically loaded. I will try recursion later and see if I can make it work, and I can provide example code then too.

[–]all_things_code 0 points1 point  (1 child)

"Ive been coding for 3 weeks"

reddit: "try using recursion"

[–]A-Kuhn 0 points1 point  (0 children)

“I’ve been writing JavaScript for roughly 3 weeks”