Advertisement
codefinity3akhar

Untitled

Mar 7th, 2023
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (let i = 1; i <= 10; i++) {
  2.   console.log("Iteration", i);
  3.  
  4.   if (i >= 5) {
  5.     console.log("Stop");
  6.     break;
  7.   };
  8.  
  9.   if (i % 2 == 0) {
  10.     console.log("Skip");
  11.     continue;
  12.   } else {
  13.     console.log("Successful");
  14.   };
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement