Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.

Cycling Through Images using the JavaScript Remainder Operator
1 year ago
9
Technology
Software & Development
programming
softwaredevelopment
livecoding
softwaredeveloper
javascript
Learn how to use the remainder operator (percent sign, aka modulo) to go from the last image to the first image.
Every time you click the next button, the current image index increments. However, it goes beyond the number of elements in the array of image URLs. So we have to reset that index back to 0 when you are seeing the last image and click next.
Loading comments...
-
DVR
DooM49
2 hours ago12 Days until Battlefield 6
10K1 -
17:23
Russell Brand
2 days agoThey couldn't handle this...
128K320 -
18:18
DeVory Darkins
22 hours ago $37.90 earnedPortland gets NIGHTMARE NEWS as Trump orders Troops to crush violent rioters
67.6K343 -
1:32:21
JTtheSG
2 hours agoLIVE Replay - Ready To Play VOID BREAKER
6.66K -
4:43:17
DoldrumDan
5 hours agoNEW STREAM SCHEDULE 3PM EST TO 7PM EST EVERY DAY
28K5 -
3:45:41
Sgt Wilky Plays
4 hours agoSunday Finals | Regiment Donor Drive
15.9K1 -
LIVE
Ouhel
6 hours agoSUNDAY | Active Matter | Exploring the postapocalyptic | O'HELL LIVE
54 watching -
LIVE
Astral Doge Plays!
7 hours agoFinal Fantasy IX ~LIVE!~ Iifa Tree Visitation Hours
34 watching -
6:15:30
J0hnThunder
6 hours ago $1.30 earned[Classic] Pac-Man World Re-Pac 1 and 2 👻 🟡 🟡 🟡 Relaxing on Sunday
18.4K1 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
142 watching