Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaScript - Continue Statement Example
#1
Code:
let i = 0;
let n = 0;

while(i < 15)
  {
    i++;
    if(i === 3)
      {
        continue;
      }
    n += i;
    document.write("The value of i is " + i + ".<br>");
    document.write("The value of n is " + n + ".<br>");
  }
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  JavaScript - For...Of Statement Example Qomplainerz 0 303 04-04-2023, 07:48 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 2 Guest(s)