Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (index < images.length) {
- if (cond1) {
- index++;
- // Do work 1
- }
- else {
- // Do work 2
- }
- }
- images.forEach(myFunc);
- for (const img of images) {
- while (!cond1) {
- // do work 2
- }
- // do work 1
- }
Add Comment
Please, Sign In to add comment