Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaScript - Do...While Loop Example
#1
Code:
let i = 0;

do
  {
    i += 1;
    document.write(i + "<br>");
  } while (i < 15);
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 Loop Example Qomplainerz 0 346 04-04-2023, 07:51 AM
Last Post: Qomplainerz
  JavaScript - While Loop Example Qomplainerz 0 308 04-04-2023, 07:49 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 6 Guest(s)