Chuyển đến nội dung chính

do ... while in javascript

     The do...while statement creates a loop that executes a specified statement until the test condition evaluates to false. The condition is evaluated after executing the statement, resulting in the specified statement executing at least once.
     In the following example program the do...while execute at least once.

Syntax

do
{
   statements; 
} while(condition);


Flow chart:
 
Example

var a = 0;
do {
  a = a + 1;
  alert(a);
} while (a < 3);



Example Program:- (Editor)


Editor is Loading...

Advertisement




Tags:
Do while in allinworld99, do while flow chart in allinworld99, javascript do... while in allinworld99.

Nhận xét

Popular Posts

ARTCUT 2009 Software USB Driver Free Full Download

Download ARTCUT 2009 Software USB Driver Full Free latest version offline setup for Microsoft Windows 7, 8,  10, XP, Vista. ARTCUT 2009 Software USB Driver is one of the best especially designer inside the agency of cutting plotter machine for operating. ARTCUT 2009 Software USB Driver Overview Artcut 2009 is the 3D realistic programming worked for 5-pivot laser cutting on Without it, with a well-ordered direction through the whole programming procedure. ArtCut programming self-sufficiently amends the courses of the hub in order to avoid crashes with the piece or different components of the machine.  Artcut 2009 Software PC programming is extraordinarily structured inside the organization of plotter cutting for working. You can undoubtedly make, do shrewd trimmings of plastic cutting. It can likewise e create legitimate plotter cuttings. You can have the chance of extra set up for the essential period of work. Stage pay, corner changes, and obtaining methods may...

strict mode in var javascript

        The "use strict" directive is introduce from javascript 1.8.5. This can't able to call statement, but this is a literal expression. This tell the code should be execute in "strict mode". Supported browser:      strict mode is only support from  the following version >IE 9 >Firefox 3 >Chrome 12 >Opera 11 Example Program:- (Editor) Editor is Loading... Output:- Advertisement

Betternet VPN Pro Full Registered Free Download For PC

Betternet Free VPN is a free multi-platform app that allows users to  connect anonymously to the internet . A VPN or virtual private  network  sends your internet connection through a separate server meaning that  any website you visit will not be able to track your location . This can be used for a number of reasons from accessing region-locked content to simply wanting to avoid being tracked. While many VPN services have an annual charge Betternet Free VPN does not. In this  article  you will discover why Betternet for Windows is one of the most comprehensive, secure and transparent VPN services around!